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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
964 B
Nix
Raw Normal View History

2021-10-14 15:50:53 +02:00
{ lib
2021-09-11 00:13:40 +02:00
, rustPlatform
2023-03-14 20:49:18 +01:00
, fetchFromGitHub
, stdenv
, darwin
2021-09-11 00:13:40 +02:00
}:
2021-09-05 22:05:57 +02:00
rustPlatform.buildRustPackage rec {
pname = "fclones";
2023-03-14 19:23:50 +01:00
version = "0.30.0";
2021-09-05 22:05:57 +02:00
src = fetchFromGitHub {
owner = "pkolaczk";
repo = pname;
rev = "v${version}";
2023-03-14 19:23:50 +01:00
sha256 = "sha256-eFWFXUARXy3VA53VPSZkJdw6ZvI+FtFnCCGHmCAdTto=";
2021-09-05 22:05:57 +02:00
};
2023-03-14 19:23:50 +01:00
cargoHash = "sha256-C7DKwEMYdypfItflMOL7rjbAdXDRsXDNoPlc9j6aBRA=";
2021-09-05 22:05:57 +02:00
2021-09-11 00:13:40 +02:00
buildInputs = lib.optionals stdenv.isDarwin [
2023-03-14 20:49:18 +01:00
darwin.apple_sdk_11_0.frameworks.AppKit
2021-09-11 00:13:40 +02:00
];
2021-09-05 22:05:57 +02:00
2021-09-11 00:13:40 +02:00
# device::test_physical_device_name test fails on Darwin
doCheck = !stdenv.isDarwin;
2021-09-05 22:05:57 +02:00
2022-09-26 23:17:53 +02:00
checkFlags = [
# ofborg sometimes fails with "Resource temporarily unavailable"
"--skip=cache::test::return_none_if_different_transform_was_used"
];
2021-09-05 22:05:57 +02:00
meta = with lib; {
description = "Efficient Duplicate File Finder and Remover";
homepage = "https://github.com/pkolaczk/fclones";
license = licenses.mit;
2021-09-11 00:13:54 +02:00
maintainers = with maintainers; [ cyounkins msfjarvis ];
2021-09-05 22:05:57 +02:00
};
}