mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-29 10:42:21 +03:00
91c9a89625
This allows for crane to work when `buildPlatform != hostPlatform`, such as well `crossSystem` is set.
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ cargo
|
|
, makeSetupHook
|
|
, jq
|
|
, rsync
|
|
, pkgsBuildBuild
|
|
}:
|
|
|
|
{
|
|
configureCargoCommonVarsHook = makeSetupHook
|
|
{
|
|
name = "configureCargoCommonVarsHook";
|
|
} ./configureCargoCommonVarsHook.sh;
|
|
|
|
configureCargoVendoredDepsHook = makeSetupHook
|
|
{
|
|
name = "configureCargoVendoredDepsHook";
|
|
} ./configureCargoVendoredDepsHook.sh;
|
|
|
|
inheritCargoArtifactsHook = makeSetupHook
|
|
{
|
|
name = "inheritCargoArtifactsHook";
|
|
substitutions = {
|
|
zstd = "${pkgsBuildBuild.zstd}/bin/zstd";
|
|
};
|
|
} ./inheritCargoArtifactsHook.sh;
|
|
|
|
installCargoArtifactsHook = makeSetupHook
|
|
{
|
|
name = "installCargoArtifactsHook";
|
|
substitutions = {
|
|
zstd = "${pkgsBuildBuild.zstd}/bin/zstd";
|
|
};
|
|
} ./installCargoArtifactsHook.sh;
|
|
|
|
installFromCargoBuildLogHook = makeSetupHook
|
|
{
|
|
name = "installFromCargoBuildLogHook";
|
|
substitutions = {
|
|
cargo = "${cargo}/bin/cargo";
|
|
jq = "${jq}/bin/jq";
|
|
};
|
|
} ./installFromCargoBuildLogHook.sh;
|
|
|
|
remapSourcePathPrefixHook = makeSetupHook
|
|
{
|
|
name = "remapSourcePathPrefixHook";
|
|
} ./remapSourcePathPrefixHook.sh;
|
|
}
|