From 97ec8de367940a95b6958343a51a584b6d344c4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20=C5=BDlender?= Date: Wed, 11 Sep 2024 23:19:43 +0200 Subject: [PATCH] deterministic-host-uname: fix use in nativeBuildInputs (cherry picked from commit 7124b06aeaa2a4aab5be6a4dfce08493cc0b88d4) --- pkgs/top-level/all-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5a3f2ad88ef67..f7ac866ce006f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3653,7 +3653,9 @@ with pkgs; deterministic-uname = callPackage ../build-support/deterministic-uname { }; - deterministic-host-uname = deterministic-uname.override { forPlatform = stdenv.hostPlatform; }; + deterministic-host-uname = deterministic-uname.override { + forPlatform = stdenv.targetPlatform; # offset by 1 so it works in nativeBuildInputs + }; dfmt = callPackage ../tools/text/dfmt { };