depot/third_party/nixpkgs/pkgs/tools/misc/fclones/default.nix
Default email c3ac4d4040 Project import generated by Copybara.
GitOrigin-RevId: 1158501e7c7cba26d922723cf9f70099995eb755
2022-09-14 15:05:37 -03:00

36 lines
795 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, libiconv
, rustPlatform
, AppKit
}:
rustPlatform.buildRustPackage rec {
pname = "fclones";
version = "0.27.3";
src = fetchFromGitHub {
owner = "pkolaczk";
repo = pname;
rev = "v${version}";
sha256 = "sha256-IAo7FKHh4oRPEmToEJca6b6E+TZvTeICPRYxol6Ppwo=";
};
cargoSha256 = "sha256-S4F/2kf9jbOA3o3kj5Ouo3QvCULbVILh3QbBLXUeOzc=";
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 ];
};
}