2015-03-17 17:04:16 +00:00
|
|
|
|
{ stdenv, autoreconfHook, fetchurl, libcap, libapparmor, perl, docbook2x
|
2013-10-03 15:08:56 +00:00
|
|
|
|
, docbook_xml_dtd_45, gnutls, pkgconfig
|
|
|
|
|
}:
|
2010-10-26 21:11:47 +00:00
|
|
|
|
|
2012-10-20 10:10:28 +00:00
|
|
|
|
stdenv.mkDerivation rec {
|
2015-01-27 12:35:09 +00:00
|
|
|
|
name = "lxc-1.0.7";
|
2010-10-26 21:11:47 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2013-10-03 15:08:56 +00:00
|
|
|
|
url = "http://github.com/lxc/lxc/archive/${name}.tar.gz";
|
2015-01-27 12:35:09 +00:00
|
|
|
|
sha256 = "1wm8n1b8j3x37757h2yyz53k3b6r2r301fmkviqf4xp0jaav1cd0";
|
2010-10-26 21:11:47 +00:00
|
|
|
|
};
|
|
|
|
|
|
2015-03-17 17:04:16 +00:00
|
|
|
|
buildInputs = [ libcap libapparmor perl docbook2x gnutls autoreconfHook pkgconfig ];
|
2011-09-23 11:16:10 +00:00
|
|
|
|
|
2013-10-03 15:08:56 +00:00
|
|
|
|
patches = [ ./install-localstatedir-in-store.patch ./support-db2x.patch ];
|
2011-09-26 08:12:10 +00:00
|
|
|
|
|
2014-04-10 00:27:43 +00: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'
|
2014-09-21 19:29:15 +00:00
|
|
|
|
substituteInPlace configure.ac --replace '$sysconfdir/' '/etc/'
|
|
|
|
|
substituteInPlace configure.ac --replace '$${sysconfdir}/' '/etc/'
|
2014-04-10 00:27:43 +00:00
|
|
|
|
'';
|
2010-10-26 21:11:47 +00:00
|
|
|
|
|
2013-04-15 09:15:55 +00:00
|
|
|
|
configureFlags = [
|
|
|
|
|
"--localstatedir=/var"
|
2014-04-10 00:27:43 +00:00
|
|
|
|
"--with-rootfs-path=/var/lib/lxc/rootfs"
|
2013-04-15 09:15:55 +00:00
|
|
|
|
"--enable-doc"
|
|
|
|
|
"--enable-tests"
|
|
|
|
|
"--enable-apparmor"
|
|
|
|
|
];
|
2011-05-08 18:46:55 +00:00
|
|
|
|
|
2010-10-26 21:11:47 +00:00
|
|
|
|
meta = {
|
2011-09-26 08:12:10 +00:00
|
|
|
|
homepage = "http://lxc.sourceforge.net";
|
2013-04-15 09:15:55 +00:00
|
|
|
|
description = "userspace tools for Linux Containers, a lightweight virtualization system";
|
2011-09-23 11:16:10 +00:00
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
2011-09-26 08:12:10 +00: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 11:16:10 +00:00
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2010-10-26 21:11:47 +00:00
|
|
|
|
};
|
|
|
|
|
}
|