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