diskus: enable build on darwin

This commit is contained in:
Mario Rodas 2018-12-24 14:15:40 -05:00
parent aac3ae3be6
commit 9477cad1e1
No known key found for this signature in database
GPG key ID: 325649BCA6D53027
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, rustPlatform }:
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
name = "diskus-${version}";
@ -11,6 +11,8 @@ rustPlatform.buildRustPackage rec {
sha256 = "18scxspi5ncags8bnxq4ah9w8hrlwwlgpq7q9qfh4d81asmbyr8n";
};
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
cargoSha256 = "1syrmm5qpz7d1h17xpw1wa3d2snaz9n7d1avsjp7xz8s2qcx1wdc";
meta = with stdenv.lib; {
@ -18,6 +20,6 @@ rustPlatform.buildRustPackage rec {
homepage = https://github.com/sharkdp/diskus;
license = with licenses; [ asl20 /* or */ mit ];
maintainers = [ maintainers.fuerbringer ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}

View file

@ -700,7 +700,9 @@ in
deskew = callPackage ../applications/graphics/deskew { };
diskus = callPackage ../tools/misc/diskus { };
diskus = callPackage ../tools/misc/diskus {
inherit (darwin.apple_sdk.frameworks) Security;
};
djmount = callPackage ../tools/filesystems/djmount { };