nixpkgs/pkgs/build-support/deterministic-uname
Simon Žlender d105e0e5fe deterministic-uname: Overridable platform
Some packages rely on `uname` to configure the host target which breaks cross-compilation.
We can have more control over the evaluation of `uname` by placing `deterministic-uname` into the package's `nativeBuildInputs`.
However the current `deterministic-uname` is hardcoded to `buildPlatform`.

This PR introduces a build argument `forPlatform` to `deterministic-uname` which allows you to override the platform it reports.

Example:
```nix
deterministic-uname.override { forPlatform = stdenv.hostPlatform; }
```

(cherry picked from commit 2ed51a3ff0)
2024-06-06 19:10:09 +00:00
..
default.nix deterministic-uname: Overridable platform 2024-06-06 19:10:09 +00:00
deterministic-uname.sh