2022-10-10 01:17:25 +03:00
|
|
|
{ mkCargoDerivation
|
2021-12-27 03:18:22 +03:00
|
|
|
}:
|
|
|
|
|
2022-10-10 01:17:25 +03:00
|
|
|
{ cargoArtifacts
|
2023-08-27 22:17:58 +03:00
|
|
|
, cargoExtraArgs ? "--locked"
|
2021-12-27 05:06:19 +03:00
|
|
|
, ...
|
2022-10-10 01:17:25 +03:00
|
|
|
}@origArgs:
|
2021-12-29 02:15:10 +03:00
|
|
|
let
|
2022-10-10 01:17:25 +03:00
|
|
|
args = builtins.removeAttrs origArgs [
|
2022-01-05 04:45:31 +03:00
|
|
|
"cargoExtraArgs"
|
|
|
|
];
|
2022-01-05 05:25:39 +03:00
|
|
|
in
|
2022-10-10 01:17:25 +03:00
|
|
|
mkCargoDerivation (args // {
|
|
|
|
inherit cargoArtifacts;
|
2022-01-03 01:48:32 +03:00
|
|
|
|
2022-10-10 01:17:25 +03:00
|
|
|
pnameSuffix = "-build";
|
|
|
|
buildPhaseCargoCommand = "cargoWithProfile build ${cargoExtraArgs}";
|
2022-01-03 01:48:32 +03:00
|
|
|
})
|