evcxr: fix darwin build

It seems as the `Security` framework is missing during the linking in a
darwin build environment:

https://logs.nix.ci/?key=nixos/nixpkgs.60675&attempt_id=42d9c159-f1a2-4abc-ab14-9dea23d941b1
This commit is contained in:
Maximilian Bosch 2019-07-21 02:13:17 +02:00
parent c4323c200f
commit 2de35cf8ee
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ cargo, fetchFromGitHub, makeWrapper, pkgconfig, rustPlatform, stdenv, gcc }:
{ cargo, fetchFromGitHub, makeWrapper, pkgconfig, rustPlatform, stdenv, gcc, Security }:
rustPlatform.buildRustPackage rec {
name = "evcxr-${version}";
@ -15,7 +15,7 @@ rustPlatform.buildRustPackage rec {
cargoPatches = [ ./cargo-lock.patch ];
nativeBuildInputs = [ pkgconfig makeWrapper ];
buildInputs = [ cargo ];
buildInputs = [ cargo ] ++ stdenv.lib.optional stdenv.isDarwin Security;
postInstall = ''
wrapProgram $out/bin/evcxr --prefix PATH : ${stdenv.lib.makeBinPath [ cargo gcc ]}
rm $out/bin/testing_runtime

View file

@ -8031,7 +8031,9 @@ in
duktape = callPackage ../development/interpreters/duktape { };
evcxr = callPackage ../development/interpreters/evcxr { };
evcxr = callPackage ../development/interpreters/evcxr {
inherit (darwin.apple_sdk.frameworks) Security;
};
beam = callPackage ./beam-packages.nix { };