buildRustPackage: add cargoBuildFlags
This commit is contained in:
parent
26f5fa8f97
commit
33cfee8177
@ -7,6 +7,7 @@
|
|||||||
, buildInputs ? []
|
, buildInputs ? []
|
||||||
, cargoUpdateHook ? ""
|
, cargoUpdateHook ? ""
|
||||||
, cargoDepsHook ? ""
|
, cargoDepsHook ? ""
|
||||||
|
, cargoBuildFlags ? []
|
||||||
, ... } @ args:
|
, ... } @ args:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -92,9 +93,9 @@ in stdenv.mkDerivation (args // {
|
|||||||
)
|
)
|
||||||
'' + (args.prePatch or "");
|
'' + (args.prePatch or "");
|
||||||
|
|
||||||
buildPhase = args.buildPhase or ''
|
buildPhase = with builtins; args.buildPhase or ''
|
||||||
echo "Running cargo build --release"
|
echo "Running cargo build --release ${concatStringsSep " " cargoBuildFlags}"
|
||||||
cargo build --release
|
cargo build --release ${concatStringsSep " " cargoBuildFlags}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = args.checkPhase or ''
|
checkPhase = args.checkPhase or ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user