3
0
Fork 0
forked from mirrors/nixpkgs

lib/systems: uname.processor is "uname -m", not "uname -p" (#189958)

The comment in lib/systems/default.nix for uname.processor indicates that it
should match `uname -p`.  I tried that command and found that it reports
`unknown` on all of these machines:

- `x86_64-linux`
- `aarch64-linux`
- `mips64el-linux`
- `powerpc64le-linux`

The command `uname -m` reports the expected value on all of the above.

I think the comment is wrong.  So I fixed it.
This commit is contained in:
Adam Joseph 2022-09-06 15:17:09 +00:00 committed by GitHub
parent 584c71c320
commit ba3c562fdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,7 +99,7 @@ rec {
genode = "Genode";
}.${final.parsed.kernel.name} or null;
# uname -p
# uname -m
processor = final.parsed.cpu.name;
# uname -r