lxc: added perl buildInput to fix the lxc-ps script
Also added myself as a maintainer, improved the meta section a little, and stripped trailing whitespace. svn path=/nixpkgs/trunk/; revision=29450
This commit is contained in:
parent
8e6bbd66aa
commit
730afe1f8b
1 changed files with 12 additions and 10 deletions
|
@ -1,31 +1,33 @@
|
|||
{stdenv, fetchurl, libcap}:
|
||||
{ stdenv, fetchurl, libcap, perl }:
|
||||
|
||||
stdenv.mkDerivation rec{
|
||||
let
|
||||
name = "lxc-0.7.5";
|
||||
in
|
||||
stdenv.mkDerivation{
|
||||
inherit name;
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://lxc.sf.net/download/lxc/${name}.tar.gz";
|
||||
sha256 = "019ec63f250c874bf7625b1f1bf555b1a6e3a947937a4fca73100abddf829b1c";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
sed -i -e '/ldconfig/d' src/lxc/Makefile.in
|
||||
'';
|
||||
buildInputs = [ libcap perl ];
|
||||
|
||||
configureFlags = [ "--localstatedir=/var" ];
|
||||
patchPhase = "sed -i -e 's|/sbin/ldconfig|:|' src/lxc/Makefile.in";
|
||||
|
||||
postInstall = ''
|
||||
configureFlags = "--localstatedir=/var";
|
||||
|
||||
postInstall = ''
|
||||
cd "$out/lib"
|
||||
lib=liblxc.so.?.*
|
||||
ln -s $lib $(echo $lib | sed -re 's/(liblxc[.]so[.].)[.].*/\1/')
|
||||
'';
|
||||
|
||||
buildInputs = [ libcap ];
|
||||
|
||||
meta = {
|
||||
homepage = http://lxc.sourceforge.net;
|
||||
description = "lxc Linux Containers userland tools";
|
||||
license = "LGPLv2.1+";
|
||||
license = stdenv.lib.licenses.lgpl21Plus;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = [ stdenv.lib.maintainers.simons ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue