git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #49673 from danieldk/cargo-asm-security

cargo-asm: fix build on macOS Mojave

commit6742bdc84595525f8aedc11553493fef70621c31 authorVladyslav M <dywedir@pm.me> dateSat 3 Nov 2018, 10:25 (8 years ago) parentc64624b1f21fc5
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 { };