From fdc0738e0b74c513e24e73dbb69e0d749aab0cf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Tue, 26 Oct 2010 21:11:47 +0000 Subject: [PATCH] Adding lxc userland tools. svn path=/nixpkgs/trunk/; revision=24502 --- pkgs/tools/system/lxc/default.nix | 23 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/tools/system/lxc/default.nix diff --git a/pkgs/tools/system/lxc/default.nix b/pkgs/tools/system/lxc/default.nix new file mode 100644 index 000000000000..0d7d5165bac7 --- /dev/null +++ b/pkgs/tools/system/lxc/default.nix @@ -0,0 +1,23 @@ +{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 + ''; + + buildInputs = [ libcap ]; + + meta = { + homepage = http://lxc.sourceforge.net; + description = "lxc Linux Containers userland tools"; + license = "LGPLv2.1+"; + platforms = with stdenv.lib.platforms; all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2e1dace998d7..82baf6f940d0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -813,6 +813,8 @@ let lsh = callPackage ../tools/networking/lsh { }; + lxc = callPackage ../tools/system/lxc { }; + lzma = xz; xz = callPackage ../tools/compression/xz { };