Skip to content

Commit

Permalink
deterministic-host-uname: fix use in nativeBuildInputs
Browse files Browse the repository at this point in the history
(cherry picked from commit 7124b06)
  • Loading branch information
szlend authored and github-actions[bot] committed Oct 7, 2024
1 parent 087a228 commit 97ec8de
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 97ec8de

Please sign in to comment.