diff options
author | William A. Kennington III <william@wkennington.com> | 2015-04-26 12:09:52 -0700 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2015-04-26 12:12:54 -0700 |
commit | 308429c6be02a5e6152d0981eb3c5a147a752134 (patch) | |
tree | ce4ad5b69dca3db1ecb43cde9e22ee35fc425174 /pkgs/servers/pulseaudio/default.nix | |
parent | 52b47982ff3e7530d304748e45433494a78214eb (diff) | |
download | nixlib-308429c6be02a5e6152d0981eb3c5a147a752134.tar nixlib-308429c6be02a5e6152d0981eb3c5a147a752134.tar.gz nixlib-308429c6be02a5e6152d0981eb3c5a147a752134.tar.bz2 nixlib-308429c6be02a5e6152d0981eb3c5a147a752134.tar.lz nixlib-308429c6be02a5e6152d0981eb3c5a147a752134.tar.xz nixlib-308429c6be02a5e6152d0981eb3c5a147a752134.tar.zst nixlib-308429c6be02a5e6152d0981eb3c5a147a752134.zip |
pulseaudio: Fix propagation of libcap
Diffstat (limited to 'pkgs/servers/pulseaudio/default.nix')
-rw-r--r-- | pkgs/servers/pulseaudio/default.nix | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/servers/pulseaudio/default.nix b/pkgs/servers/pulseaudio/default.nix index 31c32fd7222b..3ce3f73b4247 100644 --- a/pkgs/servers/pulseaudio/default.nix +++ b/pkgs/servers/pulseaudio/default.nix @@ -1,5 +1,5 @@ -{ stdenv, fetchurl, pkgconfig, gnum4, libtool -, json_c, libsndfile, gettext, intltool, check +{ stdenv, fetchurl, pkgconfig, intltool, automake, autoconf, libtool +, json_c, libsndfile, gettext, check # Optional Dependencies , xlibs ? null, libcap ? null, valgrind ? null, oss ? null, coreaudio ? null @@ -75,9 +75,11 @@ stdenv.mkDerivation rec { sha256 = "1xpnfxa0d8pgf6b4qdgnkcvrvdxbbbjd5ync19h0f5hbp3h401mm"; }; - nativeBuildInputs = [ pkgconfig gnum4 libtool ]; + patches = [ ./caps-fix.patch ]; + + nativeBuildInputs = [ pkgconfig intltool automake autoconf libtool ]; buildInputs = [ - json_c libsndfile gettext intltool check database + json_c libsndfile gettext check database optLibcap valgrind optOss optCoreaudio optAlsaLib optEsound optGlib optGtk3 optGconf optAvahi optLibjack2 optLibasyncns optLirc optDbus optUdev @@ -87,6 +89,11 @@ stdenv.mkDerivation rec { ]) ++ stdenv.lib.optionals (optBluez5 != null) [ optBluez5 optSbc ]; preConfigure = '' + # Performs and autoreconf + export NOCONFIGURE="yes" + patchShebangs bootstrap.sh + ./bootstrap.sh + # Move the udev rules under $(prefix). sed -i "src/Makefile.in" \ -e "s|udevrulesdir[[:blank:]]*=.*$|udevrulesdir = $out/lib/udev/rules.d|g" @@ -104,7 +111,7 @@ stdenv.mkDerivation rec { (mkEnable false "atomic-arm-memory-barrier" null) # TODO: Enable on armv8 (mkEnable false "neon-opt" null) # TODO: Enable on armv8 (mkEnable hasXlibs "x11" null) - (mkWith hasCaps "caps" null) + (mkWith hasCaps "caps" optLibcap) (mkEnable true "tests" null) (mkEnable false "samplerate" null) # Deprecated (mkWith true "database" databaseName) |