forked from mirrors/nixpkgs
847a310c67
Tested locally. Builds and works for me.
43 lines
1.4 KiB
Nix
43 lines
1.4 KiB
Nix
{ stdenv, autoreconfHook, fetchurl, libcap, apparmor, perl, docbook2x
|
||
, docbook_xml_dtd_45, gnutls, pkgconfig
|
||
}:
|
||
|
||
stdenv.mkDerivation rec {
|
||
name = "lxc-1.0.0.beta1";
|
||
|
||
src = fetchurl {
|
||
url = "http://github.com/lxc/lxc/archive/${name}.tar.gz";
|
||
sha256 = "1ee177c4d2ba5f9cb33c1b36f3c2160ca0b00c9fa527fc53a9c5868345306f03";
|
||
};
|
||
|
||
buildInputs = [ libcap apparmor perl docbook2x gnutls autoreconfHook pkgconfig ];
|
||
|
||
patches = [ ./install-localstatedir-in-store.patch ./support-db2x.patch ];
|
||
|
||
preConfigure = "export XML_CATALOG_FILES=${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml";
|
||
|
||
configureFlags = [
|
||
"--localstatedir=/var"
|
||
"--enable-doc"
|
||
"--enable-tests"
|
||
"--enable-apparmor"
|
||
];
|
||
|
||
meta = {
|
||
homepage = "http://lxc.sourceforge.net";
|
||
description = "userspace tools for Linux Containers, a lightweight virtualization system";
|
||
license = stdenv.lib.licenses.lgpl21Plus;
|
||
|
||
longDescription = ''
|
||
LXC is the userspace control package for Linux Containers, a
|
||
lightweight virtual system mechanism sometimes described as
|
||
"chroot on steroids". LXC builds up from chroot to implement
|
||
complete virtual systems, adding resource management and isolation
|
||
mechanisms to Linux’s existing process management infrastructure.
|
||
'';
|
||
|
||
platforms = stdenv.lib.platforms.linux;
|
||
maintainers = [ stdenv.lib.maintainers.simons ];
|
||
};
|
||
}
|