From 91c9a89625a4ca5ba22c62ee9897a6a26fc05400 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Tue, 8 Feb 2022 18:23:53 -0800 Subject: [PATCH] fix(pkgs): use zstd from pkgsBuildBuild This allows for crane to work when `buildPlatform != hostPlatform`, such as well `crossSystem` is set. --- pkgs/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/default.nix b/pkgs/default.nix index ff2c57f..35d733c 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -2,7 +2,7 @@ , makeSetupHook , jq , rsync -, zstd +, pkgsBuildBuild }: { @@ -20,7 +20,7 @@ { name = "inheritCargoArtifactsHook"; substitutions = { - zstd = "${zstd}/bin/zstd"; + zstd = "${pkgsBuildBuild.zstd}/bin/zstd"; }; } ./inheritCargoArtifactsHook.sh; @@ -28,7 +28,7 @@ { name = "installCargoArtifactsHook"; substitutions = { - zstd = "${zstd}/bin/zstd"; + zstd = "${pkgsBuildBuild.zstd}/bin/zstd"; }; } ./installCargoArtifactsHook.sh;