Archived
1
0
Fork 0

gnu: lxd: Remove input labels.

* gnu/packages/virtualization.scm (lxd)[arguments]: In 'install' phase,
refer to "bash-minimal" instead of "bash".
[inputs]: Remove labels.
This commit is contained in:
Ludovic Courtès 2022-06-19 23:06:51 +02:00
parent dbe221a89a
commit 73761d8049
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2020, 2021 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2013-2017, 2020-2022 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015, 2016, 2017, 2018 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2015, 2016, 2017, 2018 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2016, 2017, 2018. 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2016, 2017, 2018. 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
@ -1213,13 +1213,15 @@ It started as a side project of LXC but can be used by any run-time.")
(wrap-program (string-append bin-dir "lxd") (wrap-program (string-append bin-dir "lxd")
`("PATH" ":" prefix `("PATH" ":" prefix
,(fold (lambda (input paths) ,(fold (lambda (input paths)
;; TODO: Use 'search-input-directory' rather
;; than look up inputs by name.
(let* ((in (assoc-ref inputs input)) (let* ((in (assoc-ref inputs input))
(bin (string-append in "/bin")) (bin (string-append in "/bin"))
(sbin (string-append in "/sbin"))) (sbin (string-append in "/sbin")))
(append (filter file-exists? (append (filter file-exists?
(list bin sbin)) paths))) (list bin sbin)) paths)))
'() '()
'("bash" "acl" "rsync" "tar" "xz" "btrfs-progs" '("bash-minimal" "acl" "rsync" "tar" "xz" "btrfs-progs"
"gzip" "dnsmasq" "squashfs-tools" "iproute2" "gzip" "dnsmasq" "squashfs-tools" "iproute2"
"criu" "iptables" "attr")))) "criu" "iptables" "attr"))))
;; Remove unwanted binaries. ;; Remove unwanted binaries.
@ -1240,25 +1242,25 @@ It started as a side project of LXC but can be used by any run-time.")
;; ("go-golang-org-x-lint" ,go-golang-org-x-lint) ;; ("go-golang-org-x-lint" ,go-golang-org-x-lint)
pkg-config)) pkg-config))
(inputs (inputs
`(("acl" ,acl) (list acl
("eudev" ,eudev) eudev
("libdqlite" ,libdqlite) libdqlite
("libraft" ,libraft) libraft
("libcap" ,libcap) libcap
("lxc" ,lxc) lxc
;; Run-time dependencies. ;; Run-time dependencies.
("attr" ,attr) attr
("bash" ,bash-minimal) bash-minimal
("rsync" ,rsync) rsync
("tar" ,tar) tar
("xz" ,xz) xz
("btrfs-progs" ,btrfs-progs) btrfs-progs
("gzip" ,gzip) gzip
("dnsmasq" ,dnsmasq) dnsmasq
("squashfs-tools" ,squashfs-tools) squashfs-tools
("iproute2" ,iproute) iproute
("criu" ,criu) criu
("iptables" ,iptables))) iptables))
(synopsis "Daemon based on liblxc offering a REST API to manage containers") (synopsis "Daemon based on liblxc offering a REST API to manage containers")
(home-page "https://linuxcontainers.org/lxd/") (home-page "https://linuxcontainers.org/lxd/")
(description "LXD is a next generation system container manager. It (description "LXD is a next generation system container manager. It