mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-22 23:17:15 +03:00
64914fbc98
* Reducing the parameter surface area for good measure, zstd compression works pretty well and it seems redundant to support multiple ways of copying the target directory around
43 lines
1002 B
Nix
43 lines
1002 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 = {
|
|
zstd = "${zstd}/bin/zstd";
|
|
};
|
|
} ./inheritCargoArtifactsHook.sh;
|
|
|
|
installFromCargoArtifactsHook = makeSetupHook
|
|
{
|
|
name = "installFromCargoArtifactsHook";
|
|
} ./installFromCargoArtifactsHook.sh;
|
|
|
|
remapSourcePathPrefixHook = makeSetupHook
|
|
{
|
|
name = "remapSourcePathPrefixHook";
|
|
} ./remapSourcePathPrefixHook.sh;
|
|
}
|