2021-10-17 02:12:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-09-18 10:52:07 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, libiconv
|
|
|
|
, rustPlatform
|
|
|
|
, AppKit
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "fclones";
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "0.27.3";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pkolaczk";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-14 18:05:37 +00:00
|
|
|
sha256 = "sha256-IAo7FKHh4oRPEmToEJca6b6E+TZvTeICPRYxol6Ppwo=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2022-09-14 18:05:37 +00:00
|
|
|
cargoSha256 = "sha256-S4F/2kf9jbOA3o3kj5Ouo3QvCULbVILh3QbBLXUeOzc=";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
AppKit
|
|
|
|
libiconv
|
|
|
|
];
|
|
|
|
|
|
|
|
# device::test_physical_device_name test fails on Darwin
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Efficient Duplicate File Finder and Remover";
|
|
|
|
homepage = "https://github.com/pkolaczk/fclones";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ cyounkins msfjarvis ];
|
|
|
|
};
|
|
|
|
}
|