[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/17: gnu: Add Buildah.
From: |
guix-commits |
Subject: |
11/17: gnu: Add Buildah. |
Date: |
Thu, 8 Jun 2023 17:46:56 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 0c76e5f71a1ec4f5ac3f9b821568c1f64e6f2f24
Author: Zongyuan Li <zongyuan.li@c0x0o.me>
AuthorDate: Sat Mar 25 10:25:05 2023 +0000
gnu: Add Buildah.
* gnu/packages/containers.scm (buildah): New variable.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/containers.scm | 80 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm
index b402bbde6a..463a834108 100644
--- a/gnu/packages/containers.scm
+++ b/gnu/packages/containers.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2022 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
;;; Copyright © 2022 Michael Rohleder <mike@rohleder.de>
+;;; Copyright © 2023 Zongyuan Li <zongyuan.li@c0x0o.me>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -396,3 +397,82 @@ configure network interfaces in Linux containers.")
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.1")
+ (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
+ "1mcqkz68fjccdla1bgxw57w268a586brm6x28fcm6x425ah0w07h"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/containers/buildah/cmd/buildah"
+ #:unpack-path "github.com/containers/buildah"
+
+ ;; Some dependencies require go-1.18 to build.
+ #:go go-1.18
+
+ #:tests? #f
+ #:install-source? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'prepare-install-docs
+ (lambda* (#:key unpack-path #:allow-other-keys)
+ (substitute* (string-append "src/"
+ unpack-path
+ "/docs/Makefile")
+ (("../tests/tools/build/go-md2man")
+ (which "go-md2man")))
+ (substitute* (string-append "src/"
+ unpack-path
+ "/docs/Makefile")
+ (("/usr/local") (string-append #$output)))))
+ (add-after 'build 'build-docs
+ (lambda* (#:key unpack-path #:allow-other-keys)
+ (let ((doc (string-append "src/" unpack-path "/docs")))
+ (invoke "make" "-C" doc))))
+ (add-after 'install 'install-docs
+ (lambda* (#:key unpack-path #:allow-other-keys)
+ (let ((doc (string-append "src/" unpack-path "/docs")))
+ (invoke "make" "-C" doc "install")))))))
+ (inputs (list btrfs-progs
+ cni-plugins
+ conmon
+ eudev
+ glib
+ gpgme
+ libassuan
+ libseccomp
+ lvm2
+ runc))
+ (native-inputs
+ (list go-github-com-go-md2man
+ gnu-make
+ pkg-config))
+ (synopsis "Build @acronym{OCI, Open Container Initiative} images")
+ (description
+ "Buildah is a command-line tool to build @acronym{OCI, Open Container
+Initiative} container images. More generally, it can be used to:
+
+@itemize
+@item
+create a working container, either from scratch or using an image as a
+starting point;
+@item
+create an image, either from a working container or via the instructions
+in a @file{Dockerfile};
+@item
+mount a working container's root filesystem for manipulation;
+@item
+use the updated contents of a container's root filesystem as a filesystem
+layer to create a new image.
+@end itemize")
+ (home-page "https://buildah.io")
+ (license license:asl2.0)))
- branch master updated (872b248745 -> 22e7ba67dd), guix-commits, 2023/06/08
- 02/17: substitute: Delete cached narinfos more than two-month old., guix-commits, 2023/06/08
- 01/17: import: Gracefully handle EPIPE., guix-commits, 2023/06/08
- 08/17: gnu: flashrom: Update to 1.3.0., guix-commits, 2023/06/08
- 03/17: substitute: Gracefully retry after failed partial downloads., guix-commits, 2023/06/08
- 14/17: gnu: Add python-panflute., guix-commits, 2023/06/08
- 17/17: gnu: Add tmux-plugin-continuum., guix-commits, 2023/06/08
- 05/17: doc: Update outdated URL for Eudev wiki., guix-commits, 2023/06/08
- 07/17: gnu: Add rust-uom., guix-commits, 2023/06/08
- 04/17: doc: Replace reference to non-existing (gnu home services ssh-agent)., guix-commits, 2023/06/08
- 11/17: gnu: Add Buildah.,
guix-commits <=
- 16/17: gnu: octave-cli: Update to 8.2.0, guix-commits, 2023/06/08
- 10/17: gnu: Add swig@4.1., guix-commits, 2023/06/08
- 12/17: doc: Use the term "Procedure" for definitions., guix-commits, 2023/06/08
- 13/17: gnu: Add ruby-minima., guix-commits, 2023/06/08
- 09/17: gnu: flashrom: Wrap PATH to find dmidecode., guix-commits, 2023/06/08
- 15/17: gnu: Add pandoc-include., guix-commits, 2023/06/08
- 06/17: gnu: Add rogue., guix-commits, 2023/06/08