about summary refs log tree commit diff
path: root/pkgs/development/tools/rust/cargo-asm
diff options
context:
space:
mode:
authorDaniël de Kok <me@danieldk.eu>2018-11-03 08:47:18 +0100
committerDaniël de Kok <me@danieldk.eu>2018-11-03 08:47:18 +0100
commit1f21fc5e47c2bf7d9cf09cc781c76381d017894c (patch)
treefc3ab67f9f9acf3b28bfb2ed2ffad3509d233203 /pkgs/development/tools/rust/cargo-asm
parentc64624b8435af07d95effbb928d955963a5fa859 (diff)
downloadnixlib-1f21fc5e47c2bf7d9cf09cc781c76381d017894c.tar
nixlib-1f21fc5e47c2bf7d9cf09cc781c76381d017894c.tar.gz
nixlib-1f21fc5e47c2bf7d9cf09cc781c76381d017894c.tar.bz2
nixlib-1f21fc5e47c2bf7d9cf09cc781c76381d017894c.tar.lz
nixlib-1f21fc5e47c2bf7d9cf09cc781c76381d017894c.tar.xz
nixlib-1f21fc5e47c2bf7d9cf09cc781c76381d017894c.tar.zst
nixlib-1f21fc5e47c2bf7d9cf09cc781c76381d017894c.zip
cargo-asm: fix build on macOS Mojave
Building cargo-asm on Mojave fails with

ld: framework not found Security

Add Security as a build input.
Diffstat (limited to 'pkgs/development/tools/rust/cargo-asm')
-rw-r--r--pkgs/development/tools/rust/cargo-asm/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/tools/rust/cargo-asm/default.nix b/pkgs/development/tools/rust/cargo-asm/default.nix
index ca793bf49080..246f5b18843c 100644
--- a/pkgs/development/tools/rust/cargo-asm/default.nix
+++ b/pkgs/development/tools/rust/cargo-asm/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, rustPlatform }:
+{ stdenv, fetchFromGitHub, rustPlatform, Security }:
 
 rustPlatform.buildRustPackage rec {
   name = "cargo-asm-${version}";
@@ -13,6 +13,8 @@ rustPlatform.buildRustPackage rec {
 
   cargoSha256 = "1m2j6i8hc8isdlj77gv9m6sk6q0x3bvzpva2k16g27i1ngy1989b";
 
+  buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
+
   # Test checks against machine code output, which fails with some
   # LLVM/compiler versions.
   doCheck = false;