summaryrefslogtreecommitdiffstats
path: root/lib/systems.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-28 01:24:30 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-28 22:45:55 +0100
commitcfab329437a24811104bc8daa2b83b80614f753c (patch)
tree406c75a90d6be8ddbc8e519ef1f8a3aa759f5269 /lib/systems.nix
parent4b1a9dd00b508a3ea2273db916a600689d15f7f6 (diff)
Use isType instead of typeOf
Diffstat (limited to 'lib/systems.nix')
-rw-r--r--lib/systems.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/systems.nix b/lib/systems.nix
index 1ef869fb0120..afa2002c6e4e 100644
--- a/lib/systems.nix
+++ b/lib/systems.nix
@@ -22,7 +22,7 @@ rec {
};
- isCpuType = x: typeOf x == "cpu-type"
+ isCpuType = x: isType "cpu-type" x
&& elem x.bits [8 16 32 64 128]
&& (builtins.lessThan 8 x.bits -> isSignificantByte x.significantByte);
@@ -69,7 +69,7 @@ rec {
};
- isSystem = x: typeOf x == "system"
+ isSystem = x: isType "system" x
&& isCpuType x.cpu
&& isArchitecture x.arch
&& isKernel x.kernel;