2021-10-14 13:50:53 +00:00
|
|
|
{ lib
|
2021-09-10 22:13:40 +00:00
|
|
|
, rustPlatform
|
2023-03-14 19:49:18 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
2021-09-10 22:13:40 +00:00
|
|
|
}:
|
2021-09-05 20:05:57 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "fclones";
|
2023-06-04 20:22:03 +00:00
|
|
|
version = "0.31.0";
|
2021-09-05 20:05:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pkolaczk";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-06-04 20:22:03 +00:00
|
|
|
hash = "sha256-VJU6qfcsV1VO/b8LQmIARGhkB8LrGcGsnfu1rUbK3rA=";
|
2021-09-05 20:05:57 +00:00
|
|
|
};
|
|
|
|
|
2023-06-04 20:22:03 +00:00
|
|
|
cargoHash = "sha256-KkJyB6Bdy+gjLHFgLML0rX8OF3/2yXO6XAwUOyvbQIE=";
|
2021-09-05 20:05:57 +00:00
|
|
|
|
2021-09-10 22:13:40 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
2023-03-14 19:49:18 +00:00
|
|
|
darwin.apple_sdk_11_0.frameworks.AppKit
|
2021-09-10 22:13:40 +00:00
|
|
|
];
|
2021-09-05 20:05:57 +00:00
|
|
|
|
2021-09-10 22:13:40 +00:00
|
|
|
# device::test_physical_device_name test fails on Darwin
|
|
|
|
doCheck = !stdenv.isDarwin;
|
2021-09-05 20:05:57 +00:00
|
|
|
|
2022-09-26 21:17:53 +00:00
|
|
|
checkFlags = [
|
|
|
|
# ofborg sometimes fails with "Resource temporarily unavailable"
|
|
|
|
"--skip=cache::test::return_none_if_different_transform_was_used"
|
|
|
|
];
|
|
|
|
|
2021-09-05 20:05:57 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Efficient Duplicate File Finder and Remover";
|
|
|
|
homepage = "https://github.com/pkolaczk/fclones";
|
2023-06-04 20:22:03 +00:00
|
|
|
changelog = "https://github.com/pkolaczk/fclones/releases/tag/${src.rev}";
|
2021-09-05 20:05:57 +00:00
|
|
|
license = licenses.mit;
|
2023-06-04 20:22:03 +00:00
|
|
|
maintainers = with maintainers; [ cyounkins figsoda msfjarvis ];
|
2021-09-05 20:05:57 +00:00
|
|
|
};
|
|
|
|
}
|