From d9dbfc0a6c022ec717075b3ee33fbba528cb9bac Mon Sep 17 00:00:00 2001 From: Connor Baker Date: Tue, 30 Sep 2025 11:24:25 -0700 Subject: [PATCH] tests.stdenv: use system from stdenv.{build,host}Platform Signed-off-by: Connor Baker --- pkgs/test/stdenv/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/test/stdenv/default.nix b/pkgs/test/stdenv/default.nix index 45205734dd4c..cf09258d6fbc 100644 --- a/pkgs/test/stdenv/default.nix +++ b/pkgs/test/stdenv/default.nix @@ -279,7 +279,7 @@ in "-c" ": > $out" ]; - system = builtins.currentSystem; + inherit (stdenv.buildPlatform) system; }; dep2 = derivation { name = "dep2"; @@ -288,7 +288,7 @@ in "-c" ": > $out" ]; - system = builtins.currentSystem; + inherit (stdenv.buildPlatform) system; }; passAsFile = [ "dep2" ]; }) @@ -319,7 +319,7 @@ in "-c" ": > $out" ]; - system = builtins.currentSystem; + inherit (stdenv.buildPlatform) system; }; dep2 = derivation { name = "dep2"; @@ -328,7 +328,7 @@ in "-c" ": > $out" ]; - system = builtins.currentSystem; + inherit (stdenv.buildPlatform) system; }; name = "meow"; outputHash = "sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="; @@ -386,7 +386,7 @@ in ensure-no-execve-in-setup-sh = derivation { name = "ensure-no-execve-in-setup-sh"; - system = stdenv.system; + inherit (stdenv.hostPlatform) system; builder = "${stdenv.bootstrapTools}/bin/bash"; PATH = "${pkgs.strace}/bin:${stdenv.bootstrapTools}/bin"; initialPath = [