mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-23 16:32:23 +03:00
19 lines
311 B
Nix
19 lines
311 B
Nix
{ mkCargoDerivation
|
|
}:
|
|
|
|
{ cargoArtifacts
|
|
, cargoExtraArgs ? ""
|
|
, ...
|
|
}@origArgs:
|
|
let
|
|
args = builtins.removeAttrs origArgs [
|
|
"cargoExtraArgs"
|
|
];
|
|
in
|
|
mkCargoDerivation (args // {
|
|
inherit cargoArtifacts;
|
|
|
|
pnameSuffix = "-build";
|
|
buildPhaseCargoCommand = "cargoWithProfile build ${cargoExtraArgs}";
|
|
})
|