nixpkgs/pkgs/tools/misc/fclones/default.nix

30 lines
788 B
Nix
Raw Normal View History

2021-09-05 22:05:57 +02:00
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, udev }:
rustPlatform.buildRustPackage rec {
pname = "fclones";
2021-09-13 09:57:29 +02:00
version = "0.15.0";
2021-09-05 22:05:57 +02:00
src = fetchFromGitHub {
owner = "pkolaczk";
repo = pname;
rev = "v${version}";
2021-09-13 09:57:29 +02:00
sha256 = "sha256-8NUneKJpnBjC4OcAABEpI9p+saBqAk+l43FS8/tIYjc=";
2021-09-05 22:05:57 +02:00
};
2021-09-13 09:57:29 +02:00
cargoSha256 = "sha256-5qX45FJFaiE1vTXjllM9U1w57MX18GgKEFOEBMc64Jk=";
2021-09-05 22:05:57 +02:00
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 ];
};
}