deterministic-host-uname: fix use in nativeBuildInputs (#341256)

This commit is contained in:
Artturin 2024-10-07 19:59:02 +03:00 committed by GitHub
commit cd6608a897
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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