crane/pkgs/default.nix
Ivan Petkov 64914fbc98
Remove doCompressTarget option
* 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
2021-12-30 20:25:33 -08:00

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;
}