37 lines
797 B
Nix
37 lines
797 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, libiconv
|
|
, rustPlatform
|
|
, AppKit
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "fclones";
|
|
version = "0.18.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pkolaczk";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0dj82dds788q0qlsrbal3n3lajmi9931svy8wk482jfqq0f8nna5";
|
|
};
|
|
|
|
cargoSha256 = "131pbjf9s6l6g4dl6fnjh1p0ydd4nry0cvg1qrjba8qk7qwpc7jb";
|
|
|
|
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 ];
|
|
};
|
|
}
|