polkit, pulseaudio: Drop some Linux-specific dependencies
This commit is contained in:
parent
2ae2b0bca3
commit
9db68de9e6
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = src.pkgname;
|
name = src.pkgname;
|
||||||
|
|
||||||
src = fetchurl_gnome {
|
src = fetchurl_gnome {
|
||||||
project = "libgnome";
|
project = "libgnome";
|
||||||
major = "2"; minor = "32"; patchlevel = "1";
|
major = "2"; minor = "32"; patchlevel = "1";
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ stdenv, fetchurl, pkgconfig, glib, expat, pam, intltool, gettext
|
{ stdenv, fetchurl, pkgconfig, glib, expat, pam, intltool, gettext
|
||||||
, gobjectIntrospection
|
, gobjectIntrospection
|
||||||
, useSystemd ? true, systemd }:
|
, useSystemd ? stdenv.isLinux, systemd }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
# Since `libpulse*.la' contain `-lgdbm' and `-lcap', it must be propagated.
|
# Since `libpulse*.la' contain `-lgdbm' and `-lcap', it must be propagated.
|
||||||
propagatedBuildInputs
|
propagatedBuildInputs
|
||||||
= [ gdbm ] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ libcap ];
|
= [ gdbm ] ++ stdenv.lib.optionals stdenv.isLinux [ libcap ];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ pkgconfig gnum4 libtool intltool glib dbus avahi libsamplerate libsndfile
|
[ pkgconfig gnum4 libtool intltool glib dbus avahi libsamplerate libsndfile
|
||||||
|
@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
|
||||||
++ stdenv.lib.optional jackaudioSupport jackaudio
|
++ stdenv.lib.optional jackaudioSupport jackaudio
|
||||||
++ stdenv.lib.optionals x11Support [ xlibs.xlibs xlibs.libXtst xlibs.libXi ]
|
++ stdenv.lib.optionals x11Support [ xlibs.xlibs xlibs.libXtst xlibs.libXi ]
|
||||||
++ stdenv.lib.optional useSystemd systemd
|
++ stdenv.lib.optional useSystemd systemd
|
||||||
++ stdenv.lib.optionals (!stdenv.isDarwin) [ alsaLib bluez sbc udev ];
|
++ stdenv.lib.optionals stdenv.isLinux [ alsaLib bluez sbc udev ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
# Move the udev rules under $(prefix).
|
# Move the udev rules under $(prefix).
|
||||||
|
|
Loading…
Reference in a new issue