mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-25 21:42:20 +03:00
39 lines
909 B
Nix
39 lines
909 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;
|
|
|
|
installFromCargoArtifactsHook = makeSetupHook
|
|
{
|
|
name = "installFromCargoArtifactsHook";
|
|
} ./installFromCargoArtifactsHook.sh;
|
|
}
|