Skip to content

Commit

Permalink
[Backport release-24.05] deterministic-host-uname: fix use in nativeB…
Browse files Browse the repository at this point in the history
…uildInputs (#347128)
  • Loading branch information
Artturin authored Oct 7, 2024
2 parents 087a228 + 97ec8de commit 434dcf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };

Expand Down

0 comments on commit 434dcf9

Please sign in to comment.