Subject: [PATCH v5 04/11] gnu: Add hurd-shouldbeinlibc.

From: Janneke Nieuwenhuizen <[email-masked]>
Date: Tue, 23 May 2023 17:47:25 +0200

* gnu/packages/hurd.scm (hurd-shouldbeinlibc): New variable.
---
 gnu/packages/hurd.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index ff925eed75..9fbca9d5c5 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -240,6 +240,30 @@ (define-public hurd-minimal
 Library for GNU/Hurd.")
     (license gpl2+)))
 
+(define-public hurd-shouldbeinlibc
+  (package
+    (inherit hurd-headers)
+    (name "hurd-shouldbeinlibc")
+    (inputs (list glibc/hurd-headers gnumach-headers))
+    (arguments
+     (substitute-keyword-arguments (package-arguments hurd-headers)
+       ((#:make-flags flags '())
+        #~'("lib-subdirs=libshouldbeinlibc libstore"
+            "prog-subdirs="
+            "other-subdirs="
+            #$@flags))
+       ((#:phases _)
+        #~%standard-phases)
+       ((#:validate-runpath? validate-runpath? #f)
+        #f)))
+    (supported-systems %hurd-systems)
+    (home-page "https://www.gnu.org/software/hurd/hurd.html")
+    (synopsis "GNU Hurd libshouldbeinlibc library")
+    (description
+     "This package provides libshouldbeinlibc and libstore, needed to build
+parted for GNU/Hurd.")
+    (license gpl2+)))
+
 (define-public hurd-core-headers
   (package
     (name "hurd-core-headers")
-- 
2.40.1