libvirt: build with attr and apparmor

This commit is contained in:
Franz Pletz 2017-03-25 14:58:26 +01:00
parent 160fd7231e
commit ddb608814a
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4
2 changed files with 11 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, pkgconfig, libvirt, glib, libxml2, intltool, libtool, yajl
, nettle, libgcrypt, pythonPackages, gobjectIntrospection, libcap_ng, numactl
, xen
, xen, libapparmor
}:
let
@ -15,9 +15,11 @@ in stdenv.mkDerivation rec {
buildInputs = [
pkgconfig libvirt glib libxml2 intltool libtool yajl nettle libgcrypt
python pygobject2 gobjectIntrospection libcap_ng numactl xen
python pygobject2 gobjectIntrospection libcap_ng numactl xen libapparmor
];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Library for working with virtual machines";
longDescription = ''

View File

@ -1,8 +1,8 @@
{ stdenv, fetchurl, fetchpatch
, pkgconfig, makeWrapper
, libxml2, gnutls, devicemapper, perl, python2
, libxml2, gnutls, devicemapper, perl, python2, attr
, iproute, iptables, readline, lvm2, utillinux, systemd, libpciaccess, gettext
, libtasn1, ebtables, libgcrypt, yajl, pmutils, libcap_ng
, libtasn1, ebtables, libgcrypt, yajl, pmutils, libcap_ng, libapparmor
, dnsmasq, libnl, libpcap, libxslt, xhtml1, numad, numactl, perlPackages
, curl, libiconv, gmp, xen, zfs
}:
@ -24,11 +24,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper pkgconfig ];
buildInputs = [
libxml2 gnutls perl python2 readline
gettext libtasn1 libgcrypt yajl
gettext libtasn1 libgcrypt yajl attr
libxslt xhtml1 perlPackages.XMLXPath curl libpcap
] ++ optionals stdenv.isLinux [
libpciaccess devicemapper lvm2 utillinux systemd libcap_ng
libnl numad numactl xen zfs
libnl numad numactl xen zfs libapparmor
] ++ optionals stdenv.isDarwin [
libiconv gmp
];
@ -52,6 +52,9 @@ stdenv.mkDerivation rec {
"--with-esx"
"--with-remote"
] ++ optionals stdenv.isLinux [
"--with-attr"
"--with-apparmor"
"--with-secdriver-apparmor"
"--with-numad"
"--with-macvtap"
"--with-virtualport"