2013-10-03 16:08:56 +01:00
|
|
|
|
{ stdenv, autoreconfHook, fetchurl, libcap, apparmor, perl, docbook2x
|
|
|
|
|
, docbook_xml_dtd_45, gnutls, pkgconfig
|
|
|
|
|
}:
|
2010-10-26 22:11:47 +01:00
|
|
|
|
|
2012-10-20 11:10:28 +01:00
|
|
|
|
stdenv.mkDerivation rec {
|
2013-10-03 16:08:56 +01:00
|
|
|
|
name = "lxc-1.0.0.alpha1-92-g8111adf";
|
2010-10-26 22:11:47 +01:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2013-10-03 16:08:56 +01:00
|
|
|
|
url = "http://github.com/lxc/lxc/archive/${name}.tar.gz";
|
|
|
|
|
sha256 = "05hjrn79wyjnm4ynf8y0j7pk2hwfrzp4dzwynxq4z2wxlc1ficd5";
|
2010-10-26 22:11:47 +01:00
|
|
|
|
};
|
|
|
|
|
|
2013-10-03 16:08:56 +01:00
|
|
|
|
buildInputs = [ libcap apparmor perl docbook2x gnutls autoreconfHook pkgconfig ];
|
2011-09-23 12:16:10 +01:00
|
|
|
|
|
2013-10-03 16:08:56 +01:00
|
|
|
|
patches = [ ./install-localstatedir-in-store.patch ./support-db2x.patch ];
|
2011-09-26 09:12:10 +01:00
|
|
|
|
|
|
|
|
|
preConfigure = "export XML_CATALOG_FILES=${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml";
|
2010-10-26 22:11:47 +01:00
|
|
|
|
|
2013-04-15 10:15:55 +01:00
|
|
|
|
configureFlags = [
|
|
|
|
|
"--localstatedir=/var"
|
|
|
|
|
"--enable-doc"
|
|
|
|
|
"--enable-tests"
|
|
|
|
|
"--enable-apparmor"
|
|
|
|
|
];
|
2011-05-08 19:46:55 +01:00
|
|
|
|
|
2010-10-26 22:11:47 +01:00
|
|
|
|
meta = {
|
2011-09-26 09:12:10 +01:00
|
|
|
|
homepage = "http://lxc.sourceforge.net";
|
2013-04-15 10:15:55 +01:00
|
|
|
|
description = "userspace tools for Linux Containers, a lightweight virtualization system";
|
2011-09-23 12:16:10 +01:00
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
2011-09-26 09:12:10 +01:00
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
'';
|
|
|
|
|
|
2010-11-05 14:49:42 +00:00
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-09-23 12:16:10 +01:00
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2010-10-26 22:11:47 +01:00
|
|
|
|
};
|
|
|
|
|
}
|