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

49 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, autoreconfHook, fetchurl, libcap, apparmor, perl, docbook2x
, docbook_xml_dtd_45, gnutls, pkgconfig
}:
stdenv.mkDerivation rec {
2014-10-07 22:51:54 +02:00
name = "lxc-1.0.6";
src = fetchurl {
url = "http://github.com/lxc/lxc/archive/${name}.tar.gz";
2014-10-07 22:51:54 +02:00
sha256 = "075i5h136b3dnf8nk6mpailz6i18yv1zcsj0jdpr9kg2i6d1ksia";
};
buildInputs = [ libcap apparmor perl docbook2x gnutls autoreconfHook pkgconfig ];
patches = [ ./install-localstatedir-in-store.patch ./support-db2x.patch ];
preConfigure = ''
export XML_CATALOG_FILES=${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml
substituteInPlace doc/rootfs/Makefile.am --replace '@LXCROOTFSMOUNT@' '$out/lib/lxc/rootfs'
substituteInPlace configure.ac --replace '$sysconfdir/' '/etc/'
substituteInPlace configure.ac --replace '$${sysconfdir}/' '/etc/'
'';
2013-04-15 11:15:55 +02:00
configureFlags = [
"--localstatedir=/var"
"--with-rootfs-path=/var/lib/lxc/rootfs"
2013-04-15 11:15:55 +02:00
"--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 ];
};
}