2010-10-26 21:11:47 +00:00
|
|
|
{stdenv, fetchurl, libcap}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec{
|
2011-05-08 18:40:10 +00:00
|
|
|
name = "lxc-0.7.4";
|
2010-10-26 21:11:47 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/lxc/${name}.tar.gz";
|
2011-05-08 18:40:10 +00:00
|
|
|
sha256 = "a8237b2a42a05266a39aa9f9d64d7aa6f12b197cf1982d7764a0b0f9b940eef6";
|
2010-10-26 21:11:47 +00: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 18:46:55 +00:00
|
|
|
postInstall = ''
|
|
|
|
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
|
|
|
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 21:11:47 +00:00
|
|
|
};
|
|
|
|
}
|