projects/guix·commit 1c7dc07d

utils: Define 'system-hurd32?' predicate.

1c7dc07d · Nigko Yerden <[email protected]> · 2026-10-08 10:28:19 +05:00

* guix/utils.scm (system-hurd32?): New predicate.

Signed-off-by: Ludovic Courtès <[email protected]>
Merges: #11719
Commit
1c7dc07df875907b8c3fe78e146c510cc3ce7e4f
Parents
ecb6247e

Changes

1 files changed · +6 −0

FileStatusAddDelContent
guix/utils.scmmodified+6−0View file

guix/utils.scm

View file
diff --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?)