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:
parent
c4323c200f
commit
2de35cf8ee
|
@ -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
|
||||
|
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue