avahi: add gtk support
This commit is contained in:
parent
3ec683c85e
commit
994a63a91d
@ -1,5 +1,6 @@
|
|||||||
{ fetchurl, stdenv, pkgconfig, libdaemon, dbus, perlPackages
|
{ fetchurl, stdenv, pkgconfig, libdaemon, dbus, perlPackages
|
||||||
, expat, gettext, intltool, glib, libiconv
|
, expat, gettext, intltool, glib, libiconv
|
||||||
|
, gtk3Support ? false, gtk3 ? null
|
||||||
, qt4 ? null
|
, qt4 ? null
|
||||||
, qt4Support ? false
|
, qt4Support ? false
|
||||||
, withLibdnssdCompat ? false }:
|
, withLibdnssdCompat ? false }:
|
||||||
@ -19,13 +20,15 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ libdaemon dbus glib expat libiconv ]
|
buildInputs = [ libdaemon dbus glib expat libiconv ]
|
||||||
++ (with perlPackages; [ perl XMLParser ])
|
++ (with perlPackages; [ perl XMLParser ])
|
||||||
|
++ (stdenv.lib.optional gtk3Support gtk3)
|
||||||
++ (stdenv.lib.optional qt4Support qt4);
|
++ (stdenv.lib.optional qt4Support qt4);
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig gettext intltool glib ];
|
nativeBuildInputs = [ pkgconfig gettext intltool glib ];
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--disable-qt3" "--disable-gdbm" "--disable-mono"
|
[ "--disable-qt3" "--disable-gdbm" "--disable-mono"
|
||||||
"--disable-gtk" "--disable-gtk3"
|
"--disable-gtk"
|
||||||
|
(stdenv.lib.enableFeature gtk3Support "gtk3")
|
||||||
"--${if qt4Support then "enable" else "disable"}-qt4"
|
"--${if qt4Support then "enable" else "disable"}-qt4"
|
||||||
"--disable-python" "--localstatedir=/var" "--with-distro=none"
|
"--disable-python" "--localstatedir=/var" "--with-distro=none"
|
||||||
# A systemd unit is provided by the avahi-daemon NixOS module
|
# A systemd unit is provided by the avahi-daemon NixOS module
|
||||||
|
Loading…
x
Reference in New Issue
Block a user