nushell: fix darwin build
This commit is contained in:
parent
4beb9ae883
commit
a931f70824
|
@ -10,6 +10,8 @@
|
||||||
, libiconv
|
, libiconv
|
||||||
, AppKit
|
, AppKit
|
||||||
, Security
|
, Security
|
||||||
|
, nghttp2
|
||||||
|
, libgit2
|
||||||
, withStableFeatures ? true
|
, withStableFeatures ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -32,7 +34,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
buildInputs = [ openssl ]
|
buildInputs = [ openssl ]
|
||||||
++ lib.optionals stdenv.isDarwin [ zlib libiconv Security ]
|
++ lib.optionals stdenv.isDarwin [ zlib libiconv Security ]
|
||||||
++ lib.optionals (withStableFeatures && stdenv.isLinux) [ xorg.libX11 ]
|
++ lib.optionals (withStableFeatures && stdenv.isLinux) [ xorg.libX11 ]
|
||||||
++ lib.optionals (withStableFeatures && stdenv.isDarwin) [ AppKit ];
|
++ lib.optionals (withStableFeatures && stdenv.isDarwin) [ AppKit nghttp2 libgit2 ];
|
||||||
|
|
||||||
cargoBuildFlags = lib.optional withStableFeatures "--features stable";
|
cargoBuildFlags = lib.optional withStableFeatures "--features stable";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue