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
|
||||
|
||||
# Options
|
||||
, default_features ? true
|
||||
, features ? []
|
||||
, profile ? "release"
|
||||
}:
|
||||
|
@ -57,6 +58,9 @@ craneLib.buildPackage rec {
|
|||
++ lib.optionals stdenv.isDarwin [ libiconv ];
|
||||
|
||||
cargoExtraArgs = ""
|
||||
+ lib.optionalString
|
||||
(!default_features)
|
||||
"--no-default-features "
|
||||
+ lib.optionalString
|
||||
(features != [])
|
||||
"--features " + (builtins.concatStringsSep "," features);
|
||||
|
|
Loading…
Add table
Reference in a new issue