utils: Define 'system-hurd32?' predicate.
Changes
1 files changed · +6 −0
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| guix/utils.scm | modified | +6 | −0 | View file |
guix/utils.scm
View filediff --git a/guix/utils.scm b/guix/utils.scm
index adb5fa2..2f26b94 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -97,6 +97,7 @@
system-hurd?
target-hurd32?
target-hurd64?
+ system-hurd32?
system-hurd64?
host-hurd?
host-hurd64?
@@ -759,6 +760,11 @@ a character other than '@'."
(and (target-hurd? target)
(target-64bit? target)))
+(define* (system-hurd32?)
+ "Is the current system the 32bit GNU(/Hurd) system?"
+ (and (system-hurd?)
+ (target-32bit? (%current-system))))
+
(define* (system-hurd64?)
"Is the current system the 64bit GNU(/Hurd) system?"
(and (system-hurd?)