nushell: change --all-features to --features=stable
This commit is contained in:
parent
297a5627af
commit
7c7e2afc5c
@ -8,7 +8,7 @@
|
|||||||
, libiconv
|
, libiconv
|
||||||
, AppKit
|
, AppKit
|
||||||
, Security
|
, Security
|
||||||
, withAllFeatures ? true
|
, withStableFeatures ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@ -25,14 +25,14 @@ rustPlatform.buildRustPackage rec {
|
|||||||
cargoSha256 = "0bdxlbl33kilp9ai40dvdzlx9vcl8r21br82r5ljs2pg521jd66p";
|
cargoSha256 = "0bdxlbl33kilp9ai40dvdzlx9vcl8r21br82r5ljs2pg521jd66p";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ]
|
nativeBuildInputs = [ pkg-config ]
|
||||||
++ stdenv.lib.optionals (withAllFeatures && stdenv.isLinux) [ python3 ];
|
++ stdenv.lib.optionals (withStableFeatures && stdenv.isLinux) [ python3 ];
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optionals stdenv.isLinux [ openssl ]
|
buildInputs = stdenv.lib.optionals stdenv.isLinux [ openssl ]
|
||||||
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ]
|
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ]
|
||||||
++ stdenv.lib.optionals (withAllFeatures && stdenv.isLinux) [ xorg.libX11 ]
|
++ stdenv.lib.optionals (withStableFeatures && stdenv.isLinux) [ xorg.libX11 ]
|
||||||
++ stdenv.lib.optionals (withAllFeatures && stdenv.isDarwin) [ AppKit ];
|
++ stdenv.lib.optionals (withStableFeatures && stdenv.isDarwin) [ AppKit ];
|
||||||
|
|
||||||
cargoBuildFlags = stdenv.lib.optional withAllFeatures "--all-features";
|
cargoBuildFlags = stdenv.lib.optional withStableFeatures "--features=stable";
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export HOME=$TMPDIR
|
export HOME=$TMPDIR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user