fclones: add support for Darwin builds
This commit is contained in:
parent
b6d412f102
commit
b2ec5cb0bd
2 changed files with 15 additions and 7 deletions
|
@ -1,4 +1,9 @@
|
||||||
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, udev }:
|
{ lib, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, libiconv
|
||||||
|
, rustPlatform
|
||||||
|
, AppKit
|
||||||
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "fclones";
|
pname = "fclones";
|
||||||
|
@ -13,12 +18,13 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoSha256 = "sha256-5qX45FJFaiE1vTXjllM9U1w57MX18GgKEFOEBMc64Jk=";
|
cargoSha256 = "sha256-5qX45FJFaiE1vTXjllM9U1w57MX18GgKEFOEBMc64Jk=";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
buildInputs = [ udev ];
|
AppKit
|
||||||
|
libiconv
|
||||||
|
];
|
||||||
|
|
||||||
# tests in dedupe.rs fail due to
|
# device::test_physical_device_name test fails on Darwin
|
||||||
# "creation time is not available for the filesystem"
|
doCheck = !stdenv.isDarwin;
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Efficient Duplicate File Finder and Remover";
|
description = "Efficient Duplicate File Finder and Remover";
|
||||||
|
|
|
@ -24738,7 +24738,9 @@ with pkgs;
|
||||||
|
|
||||||
fbida = callPackage ../applications/graphics/fbida { };
|
fbida = callPackage ../applications/graphics/fbida { };
|
||||||
|
|
||||||
fclones = callPackage ../tools/misc/fclones { };
|
fclones = callPackage ../tools/misc/fclones {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) AppKit;
|
||||||
|
};
|
||||||
|
|
||||||
fcp = callPackage ../tools/misc/fcp { };
|
fcp = callPackage ../tools/misc/fcp { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue