nixpkgs/pkgs/build-support/deterministic-uname
Simon Žlender 2ed51a3ff0 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; }
```
2024-05-25 23:34:31 +03:00
..
default.nix deterministic-uname: Overridable platform 2024-05-25 23:34:31 +03:00
deterministic-uname.sh deterministic-uname: fix default output 2023-09-17 00:08:43 +03:00