1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/tools/system/lxc/default.nix
Lluís Batlle i Rossell 1d4fe44ecc Tell lxc to use /var instead of $out/var
svn path=/nixpkgs/trunk/; revision=24551
2010-10-31 19:25:51 +00:00

26 lines
567 B
Nix

{stdenv, fetchurl, libcap}:
stdenv.mkDerivation rec{
name = "lxc-0.7.3";
src = fetchurl {
url = "mirror://sourceforge/lxc/${name}.tar.gz";
sha256 = "02fs90gj8vc3sls2kknqhdv8nk7r2k85slx8x8slfz4vnz6jhfzs";
};
patchPhase = ''
sed -i -e '/ldconfig/d' src/lxc/Makefile.in
'';
configureFlags = [ "--localstatedir=/var" ];
buildInputs = [ libcap ];
meta = {
homepage = http://lxc.sourceforge.net;
description = "lxc Linux Containers userland tools";
license = "LGPLv2.1+";
platforms = with stdenv.lib.platforms; all;
};
}