mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-29 10:42:21 +03:00
dd3fa0123b
* 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
34 lines
766 B
Nix
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;
|
|
}
|