gnu: Add lxc.
* gnu/packages/virtualization.scm (lxc): New package.
This commit is contained in:
parent
59132b8000
commit
5d4a8f9b9e
|
@ -42,6 +42,7 @@
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages polkit)
|
#:use-module (gnu packages polkit)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
|
#:use-module (gnu packages selinux)
|
||||||
#:use-module (gnu packages sdl)
|
#:use-module (gnu packages sdl)
|
||||||
#:use-module (gnu packages spice)
|
#:use-module (gnu packages spice)
|
||||||
#:use-module (gnu packages texinfo)
|
#:use-module (gnu packages texinfo)
|
||||||
|
@ -266,6 +267,52 @@ all common programming languages. Vala bindings are also provided.")
|
||||||
;; files in the "tools" directory are released under GPLv2+.
|
;; files in the "tools" directory are released under GPLv2+.
|
||||||
(license (list lgpl2.1+ gpl2+))))
|
(license (list lgpl2.1+ gpl2+))))
|
||||||
|
|
||||||
|
(define-public lxc
|
||||||
|
(package
|
||||||
|
(name "lxc")
|
||||||
|
(version "2.0.8")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append
|
||||||
|
"https://linuxcontainers.org/downloads/lxc/lxc-"
|
||||||
|
version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"15449r56rqg3487kzsnfvz0w4p5ajrq0krcsdh6c9r6g0ark93hd"))))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(native-inputs
|
||||||
|
`(("pkg-config" ,pkg-config)))
|
||||||
|
(inputs
|
||||||
|
`(("gnutls" ,gnutls)
|
||||||
|
("libcap" ,libcap)
|
||||||
|
("libseccomp" ,libseccomp)
|
||||||
|
("libselinux" ,libselinux)))
|
||||||
|
(arguments
|
||||||
|
'(#:configure-flags
|
||||||
|
'("--sysconfdir=/etc"
|
||||||
|
"--localstatedir=/var")
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(replace 'install
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(bashcompdir (string-append out "/etc/bash_completion.d")))
|
||||||
|
(zero? (system*
|
||||||
|
"make" "install"
|
||||||
|
(string-append "bashcompdir=" bashcompdir)
|
||||||
|
;; Don't install files into /var and /etc.
|
||||||
|
"LXCPATH=/tmp/var/lib/lxc"
|
||||||
|
"localstatedir=/tmp/var"
|
||||||
|
"sysconfdir=/tmp/etc"
|
||||||
|
"sysconfigdir=/tmp/etc/default"))))))))
|
||||||
|
(synopsis "Linux container tools")
|
||||||
|
(home-page "https://linuxcontainers.org/")
|
||||||
|
(description
|
||||||
|
"LXC is a userspace interface for the Linux kernel containment features.
|
||||||
|
Through a powerful API and simple tools, it lets Linux users easily create and
|
||||||
|
manage system or application containers.")
|
||||||
|
(license lgpl2.1+)))
|
||||||
|
|
||||||
(define-public libvirt
|
(define-public libvirt
|
||||||
(package
|
(package
|
||||||
(name "libvirt")
|
(name "libvirt")
|
||||||
|
|
Loading…
Reference in New Issue