2013-01-11 14:02:15 +00:00
|
|
|
|
{ stdenv, fetchurl, libcap, apparmor, perl, docbook2x, docbook_xml_dtd_45 }:
|
2010-10-26 21:11:47 +00:00
|
|
|
|
|
2012-10-20 10:10:28 +00:00
|
|
|
|
stdenv.mkDerivation rec {
|
2013-01-11 14:02:15 +00:00
|
|
|
|
name = "lxc-0.8.0";
|
2010-10-26 21:11:47 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2011-08-18 15:01:53 +00:00
|
|
|
|
url = "http://lxc.sf.net/download/lxc/${name}.tar.gz";
|
2013-01-11 14:02:15 +00:00
|
|
|
|
sha256 = "0b3912mal1n56i1v5f3aplm7shqnlz24p0znpva27r4l1drk7j7a";
|
2010-10-26 21:11:47 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-01-11 14:02:15 +00:00
|
|
|
|
buildInputs = [ libcap apparmor perl docbook2x ];
|
2011-09-23 11:16:10 +00:00
|
|
|
|
|
2011-09-26 08:12:10 +00:00
|
|
|
|
patches = [
|
|
|
|
|
./dont-run-ldconfig.patch
|
|
|
|
|
./fix-documentation-build.patch
|
|
|
|
|
./fix-sgml-documentation.patch
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
preConfigure = "export XML_CATALOG_FILES=${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml";
|
2010-10-26 21:11:47 +00:00
|
|
|
|
|
2011-09-23 11:16:10 +00:00
|
|
|
|
configureFlags = "--localstatedir=/var";
|
2010-10-31 19:25:51 +00:00
|
|
|
|
|
2011-09-23 11:16:10 +00:00
|
|
|
|
postInstall = ''
|
2011-05-08 18:46:55 +00:00
|
|
|
|
cd "$out/lib"
|
|
|
|
|
lib=liblxc.so.?.*
|
|
|
|
|
ln -s $lib $(echo $lib | sed -re 's/(liblxc[.]so[.].)[.].*/\1/')
|
|
|
|
|
'';
|
|
|
|
|
|
2010-10-26 21:11:47 +00:00
|
|
|
|
meta = {
|
2011-09-26 08:12:10 +00:00
|
|
|
|
homepage = "http://lxc.sourceforge.net";
|
|
|
|
|
description = "lightweight virtual system mechanism";
|
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
|
|
|
|
};
|
|
|
|
|
}
|