2013-10-03 08:08:56 -07:00
|
|
|
|
{ stdenv, autoreconfHook, fetchurl, libcap, apparmor, perl, docbook2x
|
|
|
|
|
, docbook_xml_dtd_45, gnutls, pkgconfig
|
|
|
|
|
}:
|
2010-10-26 14:11:47 -07:00
|
|
|
|
|
2012-10-20 03:10:28 -07:00
|
|
|
|
stdenv.mkDerivation rec {
|
2014-10-07 13:51:54 -07:00
|
|
|
|
name = "lxc-1.0.6";
|
2010-10-26 14:11:47 -07:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2013-10-03 08:08:56 -07:00
|
|
|
|
url = "http://github.com/lxc/lxc/archive/${name}.tar.gz";
|
2014-10-07 13:51:54 -07:00
|
|
|
|
sha256 = "075i5h136b3dnf8nk6mpailz6i18yv1zcsj0jdpr9kg2i6d1ksia";
|
2010-10-26 14:11:47 -07:00
|
|
|
|
};
|
|
|
|
|
|
2013-10-03 08:08:56 -07:00
|
|
|
|
buildInputs = [ libcap apparmor perl docbook2x gnutls autoreconfHook pkgconfig ];
|
2011-09-23 04:16:10 -07:00
|
|
|
|
|
2013-10-03 08:08:56 -07:00
|
|
|
|
patches = [ ./install-localstatedir-in-store.patch ./support-db2x.patch ];
|
2011-09-26 01:12:10 -07:00
|
|
|
|
|
2014-04-09 17:27:43 -07:00
|
|
|
|
preConfigure = ''
|
|
|
|
|
export XML_CATALOG_FILES=${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml
|
|
|
|
|
substituteInPlace doc/rootfs/Makefile.am --replace '@LXCROOTFSMOUNT@' '$out/lib/lxc/rootfs'
|
|
|
|
|
'';
|
2010-10-26 14:11:47 -07:00
|
|
|
|
|
2013-04-15 02:15:55 -07:00
|
|
|
|
configureFlags = [
|
|
|
|
|
"--localstatedir=/var"
|
2014-04-09 17:27:43 -07:00
|
|
|
|
"--with-rootfs-path=/var/lib/lxc/rootfs"
|
2013-04-15 02:15:55 -07:00
|
|
|
|
"--enable-doc"
|
|
|
|
|
"--enable-tests"
|
|
|
|
|
"--enable-apparmor"
|
|
|
|
|
];
|
2011-05-08 11:46:55 -07:00
|
|
|
|
|
2010-10-26 14:11:47 -07:00
|
|
|
|
meta = {
|
2011-09-26 01:12:10 -07:00
|
|
|
|
homepage = "http://lxc.sourceforge.net";
|
2013-04-15 02:15:55 -07:00
|
|
|
|
description = "userspace tools for Linux Containers, a lightweight virtualization system";
|
2011-09-23 04:16:10 -07:00
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
2011-09-26 01:12:10 -07: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 07:49:42 -07:00
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-09-23 04:16:10 -07:00
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2010-10-26 14:11:47 -07:00
|
|
|
|
};
|
|
|
|
|
}
|