nushell: fix darwin build
This commit is contained in:
parent
4beb9ae883
commit
a931f70824
|
@ -10,6 +10,8 @@
|
|||
, libiconv
|
||||
, AppKit
|
||||
, Security
|
||||
, nghttp2
|
||||
, libgit2
|
||||
, withStableFeatures ? true
|
||||
}:
|
||||
|
||||
|
@ -32,7 +34,7 @@ rustPlatform.buildRustPackage rec {
|
|||
buildInputs = [ openssl ]
|
||||
++ lib.optionals stdenv.isDarwin [ zlib libiconv Security ]
|
||||
++ 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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue