diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2021-09-11 03:43:40 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2021-09-14 18:06:53 +0530 |
commit | b2ec5cb0bd283c0521515f8d8b36a6e97eee2bc4 (patch) | |
tree | 3be7812c26b661e64aff79185c802ced78596035 /pkgs/tools/misc/fclones | |
parent | b6d412f1021775caffb5e3e55dc9ec4e63866574 (diff) |
fclones: add support for Darwin builds
Diffstat (limited to 'pkgs/tools/misc/fclones')
-rw-r--r-- | pkgs/tools/misc/fclones/default.nix | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/tools/misc/fclones/default.nix b/pkgs/tools/misc/fclones/default.nix index 13cdb92a41e21..01bab2894133e 100644 --- a/pkgs/tools/misc/fclones/default.nix +++ b/pkgs/tools/misc/fclones/default.nix @@ -1,4 +1,9 @@ -{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, udev }: +{ lib, stdenv +, fetchFromGitHub +, libiconv +, rustPlatform +, AppKit +}: rustPlatform.buildRustPackage rec { pname = "fclones"; @@ -13,12 +18,13 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "sha256-5qX45FJFaiE1vTXjllM9U1w57MX18GgKEFOEBMc64Jk="; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ udev ]; + buildInputs = lib.optionals stdenv.isDarwin [ + AppKit + libiconv + ]; - # tests in dedupe.rs fail due to - # "creation time is not available for the filesystem" - doCheck = false; + # device::test_physical_device_name test fails on Darwin + doCheck = !stdenv.isDarwin; meta = with lib; { description = "Efficient Duplicate File Finder and Remover"; |