NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
11.45k stars 1.44k forks source link

meson: `host_machine.system()` isn't our `SYSTEM` #10957

Open roberth opened 5 days ago

roberth commented 5 days ago

_Originally posted in https://github.com/NixOS/nix/pull/10908#discussion_r1653469080_

This is probably wrong. host_machine.system() is expected to have e.g. 'linux' in other places.

I don't know how to get the right value, reliably, and we've defined it to be based on autoconf, which I don't think we want to continue doing, or do we? Alternatively, we could leave it to the packager, and pass stdenv.hostPlatform.system in our own packaging?