unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 1/3] gnu: hurd: Add kernel-headers package.
@ 2015-07-31 18:11 Manolis Ragkousis
  2015-07-31 18:43 ` Andreas Enge
  2015-08-01 15:32 ` Mark H Weaver
  0 siblings, 2 replies; 7+ messages in thread
From: Manolis Ragkousis @ 2015-07-31 18:11 UTC (permalink / raw)
  To: Guix-devel

[-- Attachment #1: Type: text/plain, Size: 175 bytes --]

This package is a union of the Mach and Hurd headers and the Hurd-minimal
package which are needed for both glibc and gcc. It will make our lifes easier
when handling inputs.

[-- Attachment #2: 0001-gnu-hurd-Add-kernel-headers-package.patch --]
[-- Type: text/x-patch, Size: 2433 bytes --]

From 39bd88957a4f16426458dcb1215d89b39b0ac474 Mon Sep 17 00:00:00 2001
From: Manolis Ragkousis <manolis837@gmail.com>
Date: Fri, 31 Jul 2015 15:26:17 +0300
Subject: [PATCH 1/3] gnu: hurd: Add kernel-headers package.

* gnu/packages/hurd.scm (kernel-headers): Add kernel-headers package.
---
 gnu/packages/hurd.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index ae84362..c99f81a 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -183,3 +183,45 @@ Library and other user programs.")
      "This package provides libihash, needed to build the GNU C 
 Library for GNU/Hurd.")
     (license gpl2+)))
+
+(define-public kernel-headers
+  (package
+    ;; This package is a union of the Mach and Hurd headers and the
+    ;; Hurd-minimal package which are needed for both glibc and gcc.
+    (name "kernel-headers")
+    (version "0")
+    (source #f)
+    (build-system gnu-build-system)
+    (propagated-inputs
+     `(("gnumach-headers" ,gnumach-headers)
+       ("hurd-headers" ,hurd-headers)
+       ("hurd-minimal" ,hurd-minimal)))
+    (arguments
+     `(#:phases (alist-delete
+                 'unpack
+                 (alist-delete
+                  'configure
+                  (alist-delete
+                   'build
+                   (alist-replace
+                    'install
+                    (lambda* (#:key inputs outputs #:allow-other-keys)
+                      (let* ((out  (assoc-ref outputs "out"))
+                             (incdir (string-append out "/include"))
+                             (libdir (string-append out "/lib"))
+                             (mach (assoc-ref inputs "gnumach-headers"))
+                             (hurd (assoc-ref inputs "hurd-headers"))
+                             (hurd-minimal (assoc-ref inputs "hurd-minimal")))
+                        (mkdir-p incdir)
+                        (mkdir-p libdir)
+                        (copy-recursively (string-append mach "/include") incdir)
+                        (copy-recursively (string-append hurd "/include") incdir)
+                        (copy-recursively (string-append hurd-minimal "/lib") libdir)
+                        #t))
+                    %standard-phases))))
+
+         #:tests? #f))
+    (home-page #f)
+    (synopsis #f)
+    (description #f)
+    (license gpl2+)))
-- 
2.4.6


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-08-10 21:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-31 18:11 [PATCH 1/3] gnu: hurd: Add kernel-headers package Manolis Ragkousis
2015-07-31 18:43 ` Andreas Enge
2015-08-01  0:32   ` Manolis Ragkousis
2015-08-01 15:32 ` Mark H Weaver
2015-08-09 14:45   ` Manolis Ragkousis
2015-08-10 21:57     ` Mark H Weaver
2015-08-10 21:59     ` Mark H Weaver

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).