about summary refs log tree commit diff
path: root/pkgs/tools/misc/fclones
diff options
context:
space:
mode:
authorCraig Younkins <cyounkins@gmail.com>2021-09-05 16:05:57 -0400
committerCraig Younkins <cyounkins@gmail.com>2021-09-08 17:14:49 -0400
commite5880bd760b3ba7aa59da32e64f941db69860819 (patch)
treeca86f9e1a450c62578afa015db070bc17dbfa0f2 /pkgs/tools/misc/fclones
parent7f2ce76f1a0d61e6550e106484ee65c5c4d58c0f (diff)
fclones: init at 0.14.0
Diffstat (limited to 'pkgs/tools/misc/fclones')
-rw-r--r--pkgs/tools/misc/fclones/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/misc/fclones/default.nix b/pkgs/tools/misc/fclones/default.nix
new file mode 100644
index 0000000000000..1072bbcc5da3e
--- /dev/null
+++ b/pkgs/tools/misc/fclones/default.nix
@@ -0,0 +1,29 @@
+{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, udev }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "fclones";
+  version = "0.14.0";
+
+  src = fetchFromGitHub {
+    owner = "pkolaczk";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1ni5amy903cy822yhw070bcrrixrw2m1vr66q1h32bc98pyv4w05";
+  };
+
+  cargoSha256 = "1gcb46k7bwdfsf6hyvmi6dna1nf6myzy63bhjfp0wy7c8g4m2mg8";
+
+  nativeBuildInputs = [ pkg-config ];
+  buildInputs = [ udev ];
+
+  # tests in dedupe.rs fail due to
+  # "creation time is not available for the filesystem"
+  doCheck = false;
+
+  meta = with lib; {
+    description = "Efficient Duplicate File Finder and Remover";
+    homepage = "https://github.com/pkolaczk/fclones";
+    license = licenses.mit;
+    maintainers = with maintainers; [ cyounkins ];
+  };
+}