2011-09-26 10:12:10 +02:00
|
|
|
|
{ stdenv, fetchurl, libcap, perl, docbook2x, docbook_xml_dtd_45 }:
|
2010-10-26 23:11:47 +02:00
|
|
|
|
|
2011-09-23 13:16:10 +02:00
|
|
|
|
let
|
2011-08-18 17:01:53 +02:00
|
|
|
|
name = "lxc-0.7.5";
|
2011-09-23 13:16:10 +02:00
|
|
|
|
in
|
|
|
|
|
stdenv.mkDerivation{
|
|
|
|
|
inherit name;
|
2010-10-26 23:11:47 +02:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2011-08-18 17:01:53 +02:00
|
|
|
|
url = "http://lxc.sf.net/download/lxc/${name}.tar.gz";
|
|
|
|
|
sha256 = "019ec63f250c874bf7625b1f1bf555b1a6e3a947937a4fca73100abddf829b1c";
|
2010-10-26 23:11:47 +02:00
|
|
|
|
};
|
|
|
|
|
|
2011-09-26 10:12:10 +02:00
|
|
|
|
buildInputs = [ libcap perl docbook2x ];
|
2011-09-23 13:16:10 +02:00
|
|
|
|
|
2011-09-26 10:12:10 +02: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 23:11:47 +02:00
|
|
|
|
|
2011-09-23 13:16:10 +02:00
|
|
|
|
configureFlags = "--localstatedir=/var";
|
2010-10-31 20:25:51 +01:00
|
|
|
|
|
2011-09-23 13:16:10 +02:00
|
|
|
|
postInstall = ''
|
2011-05-08 20:46:55 +02:00
|
|
|
|
cd "$out/lib"
|
|
|
|
|
lib=liblxc.so.?.*
|
|
|
|
|
ln -s $lib $(echo $lib | sed -re 's/(liblxc[.]so[.].)[.].*/\1/')
|
|
|
|
|
'';
|
|
|
|
|
|
2010-10-26 23:11:47 +02:00
|
|
|
|
meta = {
|
2011-09-26 10:12:10 +02:00
|
|
|
|
homepage = "http://lxc.sourceforge.net";
|
|
|
|
|
description = "lightweight virtual system mechanism";
|
2011-09-23 13:16:10 +02:00
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
2011-09-26 10:12:10 +02: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 15:49:42 +01:00
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-09-23 13:16:10 +02:00
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2010-10-26 23:11:47 +02:00
|
|
|
|
};
|
|
|
|
|
}
|