2010-10-26 23:11:47 +02:00
|
|
|
{stdenv, fetchurl, libcap}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec{
|
2011-08-18 17:01:53 +02:00
|
|
|
name = "lxc-0.7.5";
|
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
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e '/ldconfig/d' src/lxc/Makefile.in
|
|
|
|
'';
|
|
|
|
|
2010-10-31 20:25:51 +01:00
|
|
|
configureFlags = [ "--localstatedir=/var" ];
|
|
|
|
|
2011-05-08 20:46:55 +02:00
|
|
|
postInstall = ''
|
|
|
|
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
|
|
|
buildInputs = [ libcap ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://lxc.sourceforge.net;
|
|
|
|
description = "lxc Linux Containers userland tools";
|
|
|
|
license = "LGPLv2.1+";
|
2010-11-05 15:49:42 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-10-26 23:11:47 +02:00
|
|
|
};
|
|
|
|
}
|