From 7124b06aeaa2a4aab5be6a4dfce08493cc0b88d4 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 --- 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 8c95ae085c06..c223a4588c2e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3545,7 +3545,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 { };