mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-27 02:52:02 +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}";
|
|
})
|