nixpkgs/pkgs/tools/misc/fclones/default.nix
2022-08-28 10:02:56 +00:00

37 lines
795 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, libiconv
, rustPlatform
, AppKit
}:
rustPlatform.buildRustPackage rec {
pname = "fclones";
version = "0.27.1";
src = fetchFromGitHub {
owner = "pkolaczk";
repo = pname;
rev = "v${version}";
sha256 = "sha256-wU6iPOQA9rWchj4pOGos0r5QwTAWC9eoYWSRK8W1Gt0=";
};
cargoSha256 = "sha256-qVnFhES3On0qe0vdii2RMhJu7z6E0udFRD6xQy2+hbk=";
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 ];
};
}