crane/pkgs/default.nix
Ivan Petkov dd3fa0123b
Rename inheritCargoTargetHook to inheritCargoArtifactsHook
* Hopefully the updated name should be more clear that we are inhering
  some existing cargo artifacts and NOT inheriting something like
  CARGO_BUILD_TARGET which refers to the host target being built
2021-12-28 16:48:12 -08:00

34 lines
766 B
Nix

{ makeSetupHook
, rsync
, zstd
}:
{
configureCargoCommonVarsHook = makeSetupHook
{
name = "configureCargoCommonVarsHook";
} ./configureCargoCommonVarsHook.sh;
configureCargoVendoredDepsHook = makeSetupHook
{
name = "configureCargoVendoredDepsHook";
} ./configureCargoVendoredDepsHook.sh;
copyCargoTargetToOutputHook = makeSetupHook
{
name = "copyCargoTargetToOutputHook";
substitutions = {
zstd = "${zstd}/bin/zstd";
};
} ./copyCargoTargetToOutputHook.sh;
inheritCargoArtifactsHook = makeSetupHook
{
name = "inheritCargoArtifactsHook";
substitutions = {
rsync = "${rsync}/bin/rsync";
zstd = "${zstd}/bin/zstd";
};
} ./inheritCargoArtifactsHook.sh;
}