nixpkgs-suyu/pkgs/os-specific/linux/lxc/default.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

2013-01-11 15:02:15 +01:00
{ stdenv, fetchurl, libcap, apparmor, perl, docbook2x, docbook_xml_dtd_45 }:
stdenv.mkDerivation rec {
2013-04-15 11:15:55 +02:00
name = "lxc-0.9.0";
src = fetchurl {
url = "mirror://sourceforge/lxc/${name}.tar.gz";
2013-04-15 11:15:55 +02:00
sha256 = "0821clxymkgp71n720xj5ngs22s2v8jks68f5j4vypycwvm6f5qy";
};
2013-01-11 15:02:15 +01:00
buildInputs = [ libcap apparmor perl docbook2x ];
patches = [
2013-04-15 11:15:55 +02:00
./dont-run-ldconfig.patch
./install-localstatedir-in-store.patch
./support-db2x.patch
];
preConfigure = "export XML_CATALOG_FILES=${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml";
2013-04-15 11:15:55 +02:00
configureFlags = [
"--localstatedir=/var"
"--enable-doc"
"--enable-tests"
"--enable-apparmor"
];
meta = {
homepage = "http://lxc.sourceforge.net";
2013-04-15 11:15:55 +02:00
description = "userspace tools for Linux Containers, a lightweight virtualization system";
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 Linuxs existing process management infrastructure.
'';
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.simons ];
};
}