git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit1f21fc5e47c2bf7d9cf09cc781c76381d017894c authorDaniël de Kok <me@danieldk.eu> dateSat 3 Nov 2018, 08:47 (8 years ago) parentc64624b
2 files changed+6−2
pkgs/development/tools/rust/cargo-asm/default.nix+3−1 pkgs/top-level/all-packages.nix+3−1
pkgs/development/tools/rust/cargo-asm/default.nix+3−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, rustPlatform }:
1+{ stdenv, fetchFromGitHub, rustPlatform, Security }:
22
33rustPlatform.buildRustPackage rec {
44 name = "cargo-asm-${version}";
@@ -13,6 +13,8 @@ rustPlatform.buildRustPackage rec {
1313
1414 cargoSha256 = "1m2j6i8hc8isdlj77gv9m6sk6q0x3bvzpva2k16g27i1ngy1989b";
1515
16+ buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
17+
1618 # Test checks against machine code output, which fails with some
1719 # LLVM/compiler versions.
1820 doCheck = false;
pkgs/top-level/all-packages.nix+3−1
@@ -7357,7 +7357,9 @@ with pkgs;
73577357 cargo-tree = callPackage ../tools/package-management/cargo-tree { };
73587358 cargo-update = callPackage ../tools/package-management/cargo-update { };
73597359
7360− cargo-asm = callPackage ../development/tools/rust/cargo-asm { };
7360+ cargo-asm = callPackage ../development/tools/rust/cargo-asm {
7361+ inherit (darwin.apple_sdk.frameworks) Security;
7362+ };
73617363 cargo-fuzz = callPackage ../development/tools/rust/cargo-fuzz { };
73627364
73637365 pyo3-pack = callPackage ../development/tools/rust/pyo3-pack { };