allow disabling default features via override
This commit is contained in:
parent
67f9553790
commit
76ab8ca69b
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
|
, default_features ? true
|
||||||
, features ? []
|
, features ? []
|
||||||
, profile ? "release"
|
, profile ? "release"
|
||||||
}:
|
}:
|
||||||
|
@ -57,6 +58,9 @@ craneLib.buildPackage rec {
|
||||||
++ lib.optionals stdenv.isDarwin [ libiconv ];
|
++ lib.optionals stdenv.isDarwin [ libiconv ];
|
||||||
|
|
||||||
cargoExtraArgs = ""
|
cargoExtraArgs = ""
|
||||||
|
+ lib.optionalString
|
||||||
|
(!default_features)
|
||||||
|
"--no-default-features "
|
||||||
+ lib.optionalString
|
+ lib.optionalString
|
||||||
(features != [])
|
(features != [])
|
||||||
"--features " + (builtins.concatStringsSep "," features);
|
"--features " + (builtins.concatStringsSep "," features);
|
||||||
|
|
Loading…
Add table
Reference in a new issue