diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2017-07-09 15:12:32 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2017-07-10 11:13:56 -0400 |
commit | 02464668c09a3d9c8e419df913a87a84a57ce1e7 (patch) | |
tree | 5a7b5695ce0c8a1b5cbe0518f85fce170f229faa /lib | |
parent | 50831d543d37bb2953386922c6b5c7488f9028ba (diff) | |
download | nixlib-02464668c09a3d9c8e419df913a87a84a57ce1e7.tar nixlib-02464668c09a3d9c8e419df913a87a84a57ce1e7.tar.gz nixlib-02464668c09a3d9c8e419df913a87a84a57ce1e7.tar.bz2 nixlib-02464668c09a3d9c8e419df913a87a84a57ce1e7.tar.lz nixlib-02464668c09a3d9c8e419df913a87a84a57ce1e7.tar.xz nixlib-02464668c09a3d9c8e419df913a87a84a57ce1e7.tar.zst nixlib-02464668c09a3d9c8e419df913a87a84a57ce1e7.zip |
lib: Add isPowerPC predicate, and fix family name
Diffstat (limited to 'lib')
-rw-r--r-- | lib/systems/inspect.nix | 1 | ||||
-rw-r--r-- | lib/systems/parse.nix | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/systems/inspect.nix b/lib/systems/inspect.nix index 8228705272e7..a81e88989c0a 100644 --- a/lib/systems/inspect.nix +++ b/lib/systems/inspect.nix @@ -8,6 +8,7 @@ rec { "64bit" = { cpu = { bits = 64; }; }; i686 = { cpu = cpuTypes.i686; }; x86_64 = { cpu = cpuTypes.x86_64; }; + PowerPC = { cpu = cpuTypes.powerpc; }; x86 = { cpu = { family = "x86"; }; }; Arm = { cpu = { family = "arm"; }; }; Mips = { cpu = { family = "mips"; }; }; diff --git a/lib/systems/parse.nix b/lib/systems/parse.nix index bf21d74b931d..befe90f9abeb 100644 --- a/lib/systems/parse.nix +++ b/lib/systems/parse.nix @@ -44,7 +44,7 @@ rec { i686 = { bits = 32; significantByte = littleEndian; family = "x86"; }; x86_64 = { bits = 64; significantByte = littleEndian; family = "x86"; }; mips64el = { bits = 32; significantByte = littleEndian; family = "mips"; }; - powerpc = { bits = 32; significantByte = bigEndian; family = "powerpc"; }; + powerpc = { bits = 32; significantByte = bigEndian; family = "power"; }; }; isVendor = isType "vendor"; |