mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Enabling optional jackaudio support for pulseaudio
svn path=/nixpkgs/trunk/; revision=28010
This commit is contained in:
parent
2c17fb436b
commit
415be547b3
1 changed files with 7 additions and 3 deletions
|
@ -1,8 +1,11 @@
|
|||
{ stdenv, fetchurl, pkgconfig, gnum4, gdbm, libtool, glib, dbus, avahi
|
||||
, gconf, liboil, gtk, libX11, libICE, libSM, libXtst, libXi, intltool, gettext
|
||||
, libcap, alsaLib, libsamplerate, libsndfile, speex, bluez, udev
|
||||
, jackaudioSupport ? false, jackaudio ? null
|
||||
, ...}:
|
||||
|
||||
assert jackaudioSupport -> jackaudio != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pulseaudio-0.9.21";
|
||||
|
||||
|
@ -18,8 +21,8 @@ stdenv.mkDerivation rec {
|
|||
pkgconfig gnum4 libtool glib dbus avahi gconf liboil
|
||||
libsamplerate libsndfile speex alsaLib libcap
|
||||
gtk libX11 libICE libSM libXtst libXi
|
||||
intltool gettext bluez udev
|
||||
];
|
||||
intltool gettext bluez udev]
|
||||
++ stdenv.lib.optional jackaudioSupport jackaudio;
|
||||
|
||||
preConfigure = ''
|
||||
# Change the `padsp' script so that it contains the full path to
|
||||
|
@ -33,8 +36,9 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
configureFlags = ''
|
||||
--disable-solaris --disable-hal --disable-jack --localstatedir=/var
|
||||
--disable-solaris --disable-hal --localstatedir=/var
|
||||
--disable-oss-output --disable-oss-wrapper
|
||||
${if (!jackaudioSupport) then "--disable-jack" else ""}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue