guix_mirror_bot pushed a commit to branch master
in repository guix.
commit e0c386190150119eda6d8086dcc069773c449001
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Jul 10 19:15:40 2025 +0100
gnu: Remove lxd.
Fixes guix/guix#552
Incus is a maintained successor of lxd, see
<https://github.com/lxc/incus?tab=readme-ov-file#project-history>.
* gnu/packages/virtualization.scm (lxd): Delete variable.
Change-Id: I78076814c5f3ae3032470e9f0af1e29fd8b9c3b7
---
gnu/packages/virtualization.scm | 107 ----------------------------------------
1 file changed, 107 deletions(-)
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index 2e779dfd61..0883be513b 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -1611,113 +1611,6 @@ of making Linux containers feel more like a virtual
machine.
It started as a side project of LXC but can be used by any run-time.")
(license license:lgpl2.1+)))
-(define-public lxd
- (package
- (name "lxd")
- (version "4.24")
- (source (origin
- (method url-fetch)
- (uri (string-append
- "https://github.com/lxc/lxd/releases/download/"
- "lxd-" version "/lxd-" version ".tar.gz"))
- (sha256
- (base32
- "0lmjmvm98m6yjxcqlfw690i71nazfzgrm3mzbjj77g1631df3ylp"))))
- (build-system go-build-system)
- (arguments
- `(#:import-path "github.com/lxc/lxd"
- #:tests? #f ;; tests fail due to missing /var, cgroups, etc.
- #:modules ((guix build go-build-system)
- (guix build union)
- (guix build utils)
- (srfi srfi-1))
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'unpack-dist
- (lambda* (#:key import-path #:allow-other-keys)
- (with-directory-excursion (string-append "src/" import-path)
- ;; Move all the dependencies into the src directory.
- (copy-recursively "_dist/src" "../../.."))))
- (replace 'build
- (lambda* (#:key import-path #:allow-other-keys)
- (with-directory-excursion (string-append "src/" import-path)
- (invoke "make" "build" "CC=gcc" "TAG_SQLITE3=libsqlite3"))))
- (replace 'check
- (lambda* (#:key tests? import-path #:allow-other-keys)
- (when tests?
- (with-directory-excursion (string-append "src/" import-path)
- (invoke "make" "check" "CC=gcc" "TAG_SQLITE3=libsqlite3")))))
- (replace 'install
- (lambda* (#:key inputs outputs import-path #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (bin-dir
- (string-append out "/bin/"))
- (doc-dir
- (string-append out "/share/doc/lxd-" ,version))
- (completions-dir
- (string-append out "/share/bash-completion/completions")))
- (with-directory-excursion (string-append "src/" import-path)
- ;; Wrap lxd with run-time dependencies.
- (wrap-program (string-append bin-dir "lxd")
- `("PATH" ":" prefix
- ,(fold (lambda (input paths)
- ;; TODO: Use 'search-input-directory' rather
- ;; than look up inputs by name.
- (let* ((in (assoc-ref inputs input))
- (bin (string-append in "/bin"))
- (sbin (string-append in "/sbin")))
- (append (filter file-exists?
- (list bin sbin)) paths)))
- '()
- '("bash-minimal" "acl" "rsync" "tar" "xz"
"btrfs-progs"
- "gzip" "dnsmasq" "squashfs-tools" "iproute2"
- "criu" "iptables" "attr"))))
- ;; Remove unwanted binaries.
- (for-each (lambda (prog)
- (delete-file (string-append bin-dir prog)))
- '("deps" "macaroon-identity" "generate"))
- ;; Install documentation.
- (for-each (lambda (file)
- (install-file file doc-dir))
- (find-files "doc"))
- ;; Install bash completion.
- (rename-file "scripts/bash/lxd-client" "scripts/bash/lxd")
- (install-file "scripts/bash/lxd" completions-dir))))))))
- (native-inputs
- (list ;; Test dependencies:
- ;; ("go-github-com-rogpeppe-godeps" ,go-github-com-rogpeppe-godeps)
- ;; ("go-github-com-tsenart-deadcode"
,go-github-com-tsenart-deadcode)
- ;; ("go-golang-org-x-lint" ,go-golang-org-x-lint)
- pkg-config))
- (inputs
- (list acl
- eudev
- libdqlite
- libraft
- libcap
- lxc
- ;; Run-time dependencies.
- attr
- bash-minimal
- rsync
- tar
- xz
- btrfs-progs
- gzip
- dnsmasq
- squashfs-tools
- iproute
- criu
- iptables))
- (synopsis "Daemon based on liblxc offering a REST API to manage
containers")
- (home-page "https://linuxcontainers.org/lxd/")
- (description "LXD is a next generation system container manager. It
-offers a user experience similar to virtual machines but using Linux
-containers instead. It's image based with pre-made images available for a
-wide number of Linux distributions and is built around a very powerful, yet
-pretty simple, REST API.")
- (license license:asl2.0)))
-
(define-public libvirt
(package
(name "libvirt")