forked from mirrors/nixpkgs
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 {
|
||||
pname = "evcxr";
|
||||
|
@ -16,7 +17,9 @@ rustPlatform.buildRustPackage rec {
|
|||
RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
|
||||
|
||||
nativeBuildInputs = [ pkg-config makeWrapper cmake ];
|
||||
buildInputs = lib.optional stdenv.isDarwin Security;
|
||||
buildInputs = lib.optionals stdenv.isDarwin
|
||||
[ libiconv CoreServices Security ];
|
||||
|
||||
postInstall = let
|
||||
wrap = exe: ''
|
||||
wrapProgram $out/bin/${exe} \
|
||||
|
|
|
@ -11879,7 +11879,7 @@ in
|
|||
duktape = callPackage ../development/interpreters/duktape { };
|
||||
|
||||
evcxr = callPackage ../development/interpreters/evcxr {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices Security;
|
||||
};
|
||||
|
||||
beam = callPackage ./beam-packages.nix { };
|
||||
|
|
Loading…
Reference in a new issue