summary refs log tree commit diff
path: root/pkgs/tools/misc/diskus
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2018-12-24 14:15:40 -0500
committerMario Rodas <marsam@users.noreply.github.com>2018-12-24 14:22:05 -0500
commit9477cad1e1b34c5b95ed5c369f2bc9ae224367a2 (patch)
tree2c5a2c9ebcbaba4415e4f4043b7b933ff00bc2eb /pkgs/tools/misc/diskus
parentaac3ae3be619c0622e6df4ed6b58231ec4abfe4f (diff)
downloadnixpkgs-9477cad1e1b34c5b95ed5c369f2bc9ae224367a2.tar
nixpkgs-9477cad1e1b34c5b95ed5c369f2bc9ae224367a2.tar.gz
nixpkgs-9477cad1e1b34c5b95ed5c369f2bc9ae224367a2.tar.bz2
nixpkgs-9477cad1e1b34c5b95ed5c369f2bc9ae224367a2.tar.lz
nixpkgs-9477cad1e1b34c5b95ed5c369f2bc9ae224367a2.tar.xz
nixpkgs-9477cad1e1b34c5b95ed5c369f2bc9ae224367a2.tar.zst
nixpkgs-9477cad1e1b34c5b95ed5c369f2bc9ae224367a2.zip
diskus: enable build on darwin
Diffstat (limited to 'pkgs/tools/misc/diskus')
-rw-r--r--pkgs/tools/misc/diskus/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/tools/misc/diskus/default.nix b/pkgs/tools/misc/diskus/default.nix
index 7b0681f3166..346ae141819 100644
--- a/pkgs/tools/misc/diskus/default.nix
+++ b/pkgs/tools/misc/diskus/default.nix
@@ -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;
   };
 }