gnu: conmon: Use G-expressions.
* gnu/packages/containers.scm (conmon)[arguments]: Rewrite as G-expressions.
This commit is contained in:
parent
1516e1d884
commit
64c0bc0252
1 changed files with 18 additions and 14 deletions
|
@ -1,5 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2021 Timmy Douglas <mail@timmydouglas.com>
|
;;; Copyright © 2021 Timmy Douglas <mail@timmydouglas.com>
|
||||||
|
;;; Copyright © 2022 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -17,6 +18,7 @@
|
||||||
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
(define-module (gnu packages containers)
|
(define-module (gnu packages containers)
|
||||||
|
#:use-module (guix gexp)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
|
@ -117,17 +119,19 @@ Container Runtime fully written in C.")
|
||||||
(file-name (git-file-name name version))))
|
(file-name (git-file-name name version))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:make-flags (list ,(string-append "CC=" (cc-for-target))
|
(list #:make-flags
|
||||||
(string-append "PREFIX=" %output))
|
#~(list (string-append "CC=" #$(cc-for-target))
|
||||||
|
(string-append "PREFIX=" #$output))
|
||||||
;; XXX: uses `go get` to download 50 packages, runs a ginkgo test suite
|
;; XXX: uses `go get` to download 50 packages, runs a ginkgo test suite
|
||||||
;; then tries to download busybox and use a systemd logging library
|
;; then tries to download busybox and use a systemd logging library
|
||||||
;; see also https://github.com/containers/conmon/blob/main/nix/derivation.nix
|
;; see also https://github.com/containers/conmon/blob/main/nix/derivation.nix
|
||||||
#:tests? #f
|
#:tests? #f
|
||||||
#:test-target "test"
|
#:test-target "test"
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
(add-after 'unpack 'set-env
|
(add-after 'unpack 'set-env
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda _
|
||||||
;; when running go, things fail because
|
;; when running go, things fail because
|
||||||
;; HOME=/homeless-shelter.
|
;; HOME=/homeless-shelter.
|
||||||
(setenv "HOME" "/tmp"))))))
|
(setenv "HOME" "/tmp"))))))
|
||||||
|
|
Reference in a new issue