deterministic-host-uname: fix use in nativeBuildInputs

This commit is contained in:
Simon Žlender
2024-09-11 23:19:43 +02:00
parent 79948d49df
commit 7124b06aea

View File

@@ -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 { };