nushell: fix darwin build

This commit is contained in:
happysalada 2021-05-08 09:53:04 +09:00 committed by Raphael Megzari
parent 4beb9ae883
commit a931f70824

View file

@ -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";