2022-10-09 21:48:53 +03:00
|
|
|
{ mkCargoDerivation
|
2022-09-20 04:05:43 +03:00
|
|
|
}:
|
|
|
|
|
2022-10-24 02:20:22 +03:00
|
|
|
{ cargoDocExtraArgs ? "--no-deps"
|
2022-09-20 04:05:43 +03:00
|
|
|
, cargoExtraArgs ? ""
|
|
|
|
, ...
|
|
|
|
}@origArgs:
|
|
|
|
let
|
2022-10-09 21:48:53 +03:00
|
|
|
args = (builtins.removeAttrs origArgs [
|
|
|
|
"cargoDocExtraArgs"
|
|
|
|
"cargoExtraArgs"
|
|
|
|
]);
|
2022-09-20 04:05:43 +03:00
|
|
|
in
|
2022-10-09 21:48:53 +03:00
|
|
|
mkCargoDerivation (args // {
|
2022-09-20 04:05:43 +03:00
|
|
|
pnameSuffix = "-doc";
|
|
|
|
|
2022-10-09 21:48:53 +03:00
|
|
|
buildPhaseCargoCommand = "cargoWithProfile doc ${cargoExtraArgs} ${cargoDocExtraArgs}";
|
2022-09-20 04:05:43 +03:00
|
|
|
})
|