crane/pkgs/default.nix
Bernardo Meurer 91c9a89625
fix(pkgs): use zstd from pkgsBuildBuild
This allows for crane to work when `buildPlatform != hostPlatform`, such
as well `crossSystem` is set.
2022-02-08 18:23:55 -08:00

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