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";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.29.3";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pkolaczk";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-dz7Mxi5KIZYw0oLic50hNT6rWbQpfiBE4hlZsxNfKsA=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
cargoHash = "sha256-I9pd+Q3b++ujynfpZq88lqPSUOc/SXWpNzR/CwtNEPA=";
|
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;
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
checkFlags = [
|
|
|
|
# ofborg sometimes fails with "Resource temporarily unavailable"
|
|
|
|
"--skip=cache::test::return_none_if_different_transform_was_used"
|
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Efficient Duplicate File Finder and Remover";
|
|
|
|
homepage = "https://github.com/pkolaczk/fclones";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ cyounkins msfjarvis ];
|
|
|
|
};
|
|
|
|
}
|