Skip to content

Commit

Permalink
libvirt: build with attr and apparmor
Browse files Browse the repository at this point in the history
  • Loading branch information
fpletz committed Mar 25, 2017
1 parent 160fd72 commit ddb6088
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 4 additions & 2 deletions pkgs/development/libraries/libvirt-glib/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, fetchurl, pkgconfig, libvirt, glib, libxml2, intltool, libtool, yajl
, nettle, libgcrypt, pythonPackages, gobjectIntrospection, libcap_ng, numactl
, xen
, xen, libapparmor
}:

let
Expand All @@ -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 = ''
Expand Down
11 changes: 7 additions & 4 deletions pkgs/development/libraries/libvirt/default.nix
Original file line number Diff line number Diff line change
@@ -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
}:
Expand All @@ -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
];
Expand All @@ -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"
Expand Down

0 comments on commit ddb6088

Please sign in to comment.