unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#61682] [PATCH] gnu: buildah: Add 'buildah' package
@ 2023-02-21 14:35 Zongyuan Li via Guix-patches via
  2023-02-23  7:04 ` [bug#61682] [PATCH v2] " Zongyuan Li via Guix-patches via
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Zongyuan Li via Guix-patches via @ 2023-02-21 14:35 UTC (permalink / raw)
  To: 61682; +Cc: Zongyuan Li

* gnu/packages/containers.scm: New 'buildah' package

Signed-off-by: Zongyuan Li <zongyuan.li@c0x0o.me>
---
 gnu/packages/containers.scm | 68 +++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)

diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm
index 80c4aaa400..731a56075c 100644
--- a/gnu/packages/containers.scm
+++ b/gnu/packages/containers.scm
@@ -41,6 +41,7 @@ (define-module (gnu packages containers)
   #:use-module (gnu packages gnupg)
   #:use-module (gnu packages golang)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages perl)
   #:use-module (gnu packages python)
   #:use-module (gnu packages networking)
   #:use-module (gnu packages pkg-config)
@@ -405,3 +406,70 @@ (define-public podman
 volumes mounted into those containers, and pods made from groups of
 containers.")
     (license license:asl2.0)))
+
+(define-public buildah
+  (package
+    (name "buildah")
+    (version "1.29.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/containers/buildah")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "16kc19m5in819624c3np4aqb9hkjc93d34y4958jqy1k3p2p5rir"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:make-flags #~(list #$(string-append "CC="
+                                                 (cc-for-target))
+                                (string-append "PREFIX="
+                                               #$output))
+           #:tests? #f
+           #:phases #~(modify-phases %standard-phases
+                        (delete 'configure)
+                        (add-after 'unpack 'set-env
+                          (lambda* (#:key inputs #:allow-other-keys)
+                            (setenv "HOME" "/tmp")))
+                        (add-after 'unpack 'avoid-building-tools
+                          (lambda _
+                            (substitute* "Makefile"
+                              (("^docs: install\\.tools")
+                               "docs:"))))
+                        (add-after 'unpack 'avoid-building-tools
+                          (lambda _
+                            (substitute* "Makefile"
+                              (("^all: .*")
+                               "all: bin/buildah docs"))))
+                        (add-after 'unpack 'use-doc-tools
+                          (lambda _
+                            (substitute* "docs/Makefile"
+                              (("../tests/tools/build/go-md2man")
+                               (which "go-md2man")))))
+                        (add-after 'install 'install-completions
+                          (lambda _
+                            (invoke "make" "install.completions"
+                                    (string-append "PREFIX="
+                                                   #$output)))))))
+    (inputs (list btrfs-progs
+                  cni-plugins
+                  conmon
+                  eudev
+                  glib
+                  go-github-com-go-md2man
+                  gpgme
+                  libassuan
+                  libseccomp
+                  lvm2
+                  runc))
+    (native-inputs (list bats git go-1.18 perl pkg-config))
+    (synopsis
+     "Facilitates building Open Container Initiative (OCI) container images")
+    (description
+     "Buildah is an open source, Linux-based tool used to build Open Container
+Initiative (OCI)-compatible containers.  With Buildah, you can use your
+favorite tools to create efficient container images from an existing base image
+or from scratch using an empty image.")
+    (home-page "https://buildah.io")
+    (license license:asl2.0)))
--
2.37.1 (Apple Git-137.1)






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

end of thread, other threads:[~2023-06-08 21:28 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-21 14:35 [bug#61682] [PATCH] gnu: buildah: Add 'buildah' package Zongyuan Li via Guix-patches via
2023-02-23  7:04 ` [bug#61682] [PATCH v2] " Zongyuan Li via Guix-patches via
2023-02-23 11:31 ` Zongyuan Li via Guix-patches via
2023-02-23 12:26 ` Zongyuan Li via Guix-patches via
2023-02-24  5:20   ` Liliana Marie Prikler
2023-02-24  7:12     ` Zongyuan Li via Guix-patches via
2023-02-23 12:50 ` Zongyuan Li via Guix-patches via
2023-03-24 10:14 ` [bug#61682] [PATCH v3 0/1] " Zongyuan Li via Guix-patches via
2023-03-24 10:14   ` [bug#61682] [PATCH v3 1/1] " Zongyuan Li via Guix-patches via
2023-03-24 18:00     ` Liliana Marie Prikler
2023-03-25  9:15       ` Zongyuan Li via Guix-patches via
2023-03-25 10:46         ` Liliana Marie Prikler
2023-03-25 11:02           ` Zongyuan Li via Guix-patches via
2023-03-25 10:23 ` [bug#61682] [PATCH v4 0/1] " Zongyuan Li via Guix-patches via
2023-03-25 10:25   ` [bug#61682] [PATCH v4 1/1] " Zongyuan Li via Guix-patches via
2023-03-25 11:09     ` Liliana Marie Prikler
2023-06-08 21:27     ` bug#61682: [PATCH] " Ludovic Courtès

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).