evcxr: fix darwin build
This commit is contained in:
parent
ab38d4dae8
commit
e957b3c5b8
@ -1,4 +1,5 @@
|
|||||||
{ cargo, fetchFromGitHub, makeWrapper, pkg-config, rustPlatform, lib, stdenv, gcc, Security, cmake }:
|
{ cargo, fetchFromGitHub, makeWrapper, pkg-config, rustPlatform, lib, stdenv
|
||||||
|
, gcc, cmake, libiconv, CoreServices, Security }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "evcxr";
|
pname = "evcxr";
|
||||||
@ -16,7 +17,9 @@ rustPlatform.buildRustPackage rec {
|
|||||||
RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
|
RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config makeWrapper cmake ];
|
nativeBuildInputs = [ pkg-config makeWrapper cmake ];
|
||||||
buildInputs = lib.optional stdenv.isDarwin Security;
|
buildInputs = lib.optionals stdenv.isDarwin
|
||||||
|
[ libiconv CoreServices Security ];
|
||||||
|
|
||||||
postInstall = let
|
postInstall = let
|
||||||
wrap = exe: ''
|
wrap = exe: ''
|
||||||
wrapProgram $out/bin/${exe} \
|
wrapProgram $out/bin/${exe} \
|
||||||
|
@ -11879,7 +11879,7 @@ in
|
|||||||
duktape = callPackage ../development/interpreters/duktape { };
|
duktape = callPackage ../development/interpreters/duktape { };
|
||||||
|
|
||||||
evcxr = callPackage ../development/interpreters/evcxr {
|
evcxr = callPackage ../development/interpreters/evcxr {
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) CoreServices Security;
|
||||||
};
|
};
|
||||||
|
|
||||||
beam = callPackage ./beam-packages.nix { };
|
beam = callPackage ./beam-packages.nix { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user