diff options
author | Manolis Ragkousis <manolis837@gmail.com> | 2017-01-02 21:07:59 +0200 |
---|---|---|
committer | Manolis Ragkousis <manolis837@gmail.com> | 2017-01-03 16:00:39 +0200 |
commit | 62596a158b4878e3f4b64f3e0f3a3f846228afd4 (patch) | |
tree | aba9fdbf72f5ea1806285d561bbe71c1b1a42cb5 /gnu/packages/hurd.scm | |
parent | 6a37872cd2c132371ef2cb5344e004c63fdeb927 (diff) | |
download | gnu-guix-62596a158b4878e3f4b64f3e0f3a3f846228afd4.tar gnu-guix-62596a158b4878e3f4b64f3e0f3a3f846228afd4.tar.gz |
gnu: Use hurd-triplet? to check if GNU/Hurd.
* gnu/packages/make-bootstrap.scm (hurd-triplet?): Move it from here..
* gnu/packages/hurd.scm: ..to here. New exported procedure.
* gnu/packages/commencement.scm (glibc-final-with-bootstrap-bash)
[arguments]: Replace string-match.
[inputs]: Same.
* gnu/packages/cross-base.scm (cross-libc)[native-inputs]: Same.
Diffstat (limited to 'gnu/packages/hurd.scm')
-rw-r--r-- | gnu/packages/hurd.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm index 3b79eab3d6..557091d055 100644 --- a/gnu/packages/hurd.scm +++ b/gnu/packages/hurd.scm @@ -28,7 +28,12 @@ #:use-module (gnu packages bison) #:use-module (gnu packages perl) #:use-module (gnu packages base) - #:use-module (guix git-download)) + #:use-module (guix git-download) + #:export (hurd-triplet?)) + +(define (hurd-triplet? triplet) + (and (string-suffix? "-gnu" triplet) + (not (string-contains triplet "linux")))) (define-public gnumach-headers (package |