summary refs log tree commit diff
diff options
context:
space:
mode:
authorRyan Burns <rtburns@protonmail.com>2020-11-29 12:35:14 -0800
committerRyan Burns <rtburns@protonmail.com>2020-11-29 12:35:14 -0800
commit6906e20605561b39a711ccc6bc63d42108cdc466 (patch)
treee96f089f6f5894ff64584a84555b52b1f8c91e35
parent752b6a95db93f03d6901304f760bd452b4b7db41 (diff)
downloadnixpkgs-6906e20605561b39a711ccc6bc63d42108cdc466.tar
nixpkgs-6906e20605561b39a711ccc6bc63d42108cdc466.tar.gz
nixpkgs-6906e20605561b39a711ccc6bc63d42108cdc466.tar.bz2
nixpkgs-6906e20605561b39a711ccc6bc63d42108cdc466.tar.lz
nixpkgs-6906e20605561b39a711ccc6bc63d42108cdc466.tar.xz
nixpkgs-6906e20605561b39a711ccc6bc63d42108cdc466.tar.zst
nixpkgs-6906e20605561b39a711ccc6bc63d42108cdc466.zip
ion: fix build on darwin
-rw-r--r--pkgs/shells/ion/default.nix6
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/shells/ion/default.nix b/pkgs/shells/ion/default.nix
index f84f150bc55..c2cc626bd3c 100644
--- a/pkgs/shells/ion/default.nix
+++ b/pkgs/shells/ion/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, rustPlatform }:
+{ stdenv, fetchFromGitHub, rustPlatform, Security }:
 
 rustPlatform.buildRustPackage rec {
   pname = "ion";
@@ -20,6 +20,10 @@ rustPlatform.buildRustPackage rec {
     maintainers = with maintainers; [ dywedir ];
   };
 
+  buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin [
+    Security
+  ];
+
   passthru = {
     shellPath = "/bin/ion";
   };
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 259a468b686..8b4b896f862 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -8620,7 +8620,9 @@ in
 
   fish-foreign-env = callPackage ../shells/fish/fish-foreign-env { };
 
-  ion = callPackage ../shells/ion { };
+  ion = callPackage ../shells/ion {
+    inherit (darwin) Security;
+  };
 
   jush = callPackage ../shells/jush { };