2010-10-26 22:11:47 +01:00
|
|
|
{stdenv, fetchurl, libcap}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec{
|
2011-08-18 16:01:53 +01:00
|
|
|
name = "lxc-0.7.5";
|
2010-10-26 22:11:47 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-08-18 16:01:53 +01:00
|
|
|
url = "http://lxc.sf.net/download/lxc/${name}.tar.gz";
|
|
|
|
sha256 = "019ec63f250c874bf7625b1f1bf555b1a6e3a947937a4fca73100abddf829b1c";
|
2010-10-26 22:11:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e '/ldconfig/d' src/lxc/Makefile.in
|
|
|
|
'';
|
|
|
|
|
2010-10-31 19:25:51 +00:00
|
|
|
configureFlags = [ "--localstatedir=/var" ];
|
|
|
|
|
2011-05-08 19:46:55 +01:00
|
|
|
postInstall = ''
|
|
|
|
cd "$out/lib"
|
|
|
|
lib=liblxc.so.?.*
|
|
|
|
ln -s $lib $(echo $lib | sed -re 's/(liblxc[.]so[.].)[.].*/\1/')
|
|
|
|
'';
|
|
|
|
|
2010-10-26 22:11:47 +01:00
|
|
|
buildInputs = [ libcap ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://lxc.sourceforge.net;
|
|
|
|
description = "lxc Linux Containers userland tools";
|
|
|
|
license = "LGPLv2.1+";
|
2010-11-05 14:49:42 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-10-26 22:11:47 +01:00
|
|
|
};
|
|
|
|
}
|