From 404ef7091b064592eeceb4cb7fa9e418e0eedfb9 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 20 Nov 2022 18:14:16 +0100 Subject: [PATCH] ddh: init at 0.13.0 --- pkgs/tools/system/ddh/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/tools/system/ddh/default.nix diff --git a/pkgs/tools/system/ddh/default.nix b/pkgs/tools/system/ddh/default.nix new file mode 100644 index 000000000000..cba8ade1f428 --- /dev/null +++ b/pkgs/tools/system/ddh/default.nix @@ -0,0 +1,26 @@ +{ lib, fetchFromGitHub, rustPlatform, ... }: +rustPlatform.buildRustPackage rec { + pname = "ddh"; + version = "0.13.0"; + + src = fetchFromGitHub { + owner = "darakian"; + repo = pname; + rev = version; + sha256 = "XFfTpX4c821pcTAJZFUjdqM940fRoBwkJC6KTknXtCw="; + }; + + cargoSha256 = "6yPDkbag81TZ4k72rbmGT6HWKdGK4yfKxjGNFKEWXPI="; + + meta = with lib; { + description = "A fast duplicate file finder"; + longDescription = '' + DDH traverses input directories and their subdirectories. + It also hashes files as needed and reports findings. + ''; + homepage = "https://github.com/darakian/ddh"; + license = licenses.lgpl3Only; + maintainers = with maintainers; [ h7x4 ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d1ccb4d98efd..0e65f1de85ee 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5841,6 +5841,8 @@ with pkgs; dd_rescue = callPackage ../tools/system/dd_rescue { }; + ddh = callPackage ../tools/system/ddh { }; + ddrescue = callPackage ../tools/system/ddrescue { }; ddrescueview = callPackage ../tools/system/ddrescueview { };