[Backport release-24.05] deterministic-host-uname: fix use in nativeBuildInputs (#347128)

This commit is contained in:
Artturin
2024-10-07 20:16:56 +03:00
committed by GitHub

View File

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