mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
Merge pull request #137626 from msfjarvis/hs/2021-09-12/fclones-darwin
fclones: add Darwin support, bump 0.14.0 -> 0.15.0
This commit is contained in:
commit
d650c9a0f6
@ -1,29 +1,35 @@
|
||||
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, udev }:
|
||||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, libiconv
|
||||
, rustPlatform
|
||||
, AppKit
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "fclones";
|
||||
version = "0.14.0";
|
||||
version = "0.15.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pkolaczk";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1ni5amy903cy822yhw070bcrrixrw2m1vr66q1h32bc98pyv4w05";
|
||||
sha256 = "sha256-8NUneKJpnBjC4OcAABEpI9p+saBqAk+l43FS8/tIYjc=";
|
||||
};
|
||||
|
||||
cargoSha256 = "1gcb46k7bwdfsf6hyvmi6dna1nf6myzy63bhjfp0wy7c8g4m2mg8";
|
||||
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";
|
||||
homepage = "https://github.com/pkolaczk/fclones";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ cyounkins ];
|
||||
maintainers = with maintainers; [ cyounkins msfjarvis ];
|
||||
};
|
||||
}
|
||||
|
@ -24311,7 +24311,9 @@ with pkgs;
|
||||
|
||||
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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user