diff options
author | Adam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com> | 2022-09-06 15:17:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-06 10:17:09 -0500 |
commit | ba3c562fdc397464e03f850e2b60d6e59702f39a (patch) | |
tree | 6baee18b5e7194662bed72581ac9e94237fa5fcc /lib | |
parent | 584c71c320442b7f24e62dd866602be1cb3b5800 (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/systems/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix index eaee4ffa2874d..1e65bcc26795f 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -99,7 +99,7 @@ rec { genode = "Genode"; }.${final.parsed.kernel.name} or null; - # uname -p + # uname -m processor = final.parsed.cpu.name; # uname -r |