mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
Adding a RC version of LinuX Containers
This commit is contained in:
parent
640a13c04c
commit
2867563496
49
pkgs/applications/virtualization/lxc/0.8.nix
Normal file
49
pkgs/applications/virtualization/lxc/0.8.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ stdenv, fetchurl, libcap, perl, docbook2x, docbook_xml_dtd_45 }:
|
||||
|
||||
let
|
||||
name = "lxc-0.8.0-rc2";
|
||||
in
|
||||
stdenv.mkDerivation{
|
||||
inherit name;
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://lxc.sf.net/download/lxc/${name}.tar.gz";
|
||||
sha256 = "1f0ee0464507d26e494784e841b68c765ecd3abc5976012e226f69d1aa361bef";
|
||||
};
|
||||
|
||||
buildInputs = [ libcap perl docbook2x ];
|
||||
|
||||
patches = [
|
||||
./dont-run-ldconfig.patch
|
||||
./fix-documentation-build.patch
|
||||
./fix-sgml-documentation.patch
|
||||
];
|
||||
|
||||
preConfigure = "export XML_CATALOG_FILES=${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml";
|
||||
|
||||
configureFlags = "--localstatedir=/var --disable-doc";
|
||||
|
||||
postInstall = ''
|
||||
cd "$out/lib"
|
||||
lib=liblxc.so.?.*
|
||||
ln -s $lib $(echo $lib | sed -re 's/(liblxc[.]so[.].)[.].*/\1/')
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://lxc.sourceforge.net";
|
||||
description = "lightweight virtual system mechanism";
|
||||
license = stdenv.lib.licenses.lgpl21Plus;
|
||||
|
||||
longDescription = ''
|
||||
LXC is the userspace control package for Linux Containers, a
|
||||
lightweight virtual system mechanism sometimes described as
|
||||
"chroot on steroids". LXC builds up from chroot to implement
|
||||
complete virtual systems, adding resource management and isolation
|
||||
mechanisms to Linux’s existing process management infrastructure.
|
||||
'';
|
||||
|
||||
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = [ stdenv.lib.maintainers.simons ];
|
||||
};
|
||||
}
|
@ -1025,6 +1025,7 @@ let
|
||||
lshw = callPackage ../tools/system/lshw { };
|
||||
|
||||
lxc = callPackage ../applications/virtualization/lxc { };
|
||||
lxc_0_8 = callPackage ../applications/virtualization/lxc/0.8.nix { };
|
||||
|
||||
lzma = xz;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user