nushell: fix darwin build

wip/little-gl
happysalada 3 years ago committed by Raphael Megzari
parent 4beb9ae883
commit a931f70824
  1. 4
      pkgs/shells/nushell/default.nix

@ -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…
Cancel
Save