@@ -1,6 +1,6 @@
1−{ stdenv, intltool, fetchurl, apacheHttpd_2_2, nautilus
1+{ stdenv, intltool, fetchurl, apacheHttpd, nautilus
22, pkgconfig, gtk3, glib, libxml2, gnused, systemd
3−, bash, makeWrapper, itstool, libnotify, libtool, mod_dnssd
3+, bash, wrapGAppsHook, itstool, libnotify, libtool, mod_dnssd
44, gnome3, librsvg, gdk_pixbuf, file, libcanberra_gtk3 }:
55
66stdenv.mkDerivation rec {
@@ -11,17 +11,18 @@ stdenv.mkDerivation rec {
1111 NIX_CFLAGS_COMPILE = "-I${gnome3.glib.dev}/include/gio-unix-2.0";
1212
1313 preConfigure = ''
14− sed -e 's,^LoadModule dnssd_module.\+,LoadModule dnssd_module ${mod_dnssd}/modules/mod_dnssd.so,' -i data/dav_user_2.2.conf
14+ sed -e 's,^LoadModule dnssd_module.\+,LoadModule dnssd_module ${mod_dnssd}/modules/mod_dnssd.so,' \
15+ -e 's,''${HTTP_MODULES_PATH},${apacheHttpd}/modules,' \
16+ -i data/dav_user_2.4.conf
1517 '';
1618
17− configureFlags = [ "--with-httpd=${apacheHttpd_2_2.out}/bin/httpd"
18− "--with-modules-path=${apacheHttpd_2_2.dev}/modules"
19+ configureFlags = [ "--with-httpd=${apacheHttpd.out}/bin/httpd"
20+ "--with-modules-path=${apacheHttpd.dev}/modules"
1921 "--with-systemduserunitdir=$(out)/etc/systemd/user"
20− "--disable-bluetooth"
2122 "--with-nautilusdir=$(out)/lib/nautilus/extensions-3.0" ];
2223
2324 buildInputs = [ pkgconfig gtk3 glib intltool itstool libxml2 libtool
24− makeWrapper file gdk_pixbuf gnome3.defaultIconTheme librsvg
25+ wrapGAppsHook file gdk_pixbuf gnome3.defaultIconTheme librsvg
2526 nautilus libnotify libcanberra_gtk3 systemd ];
2627
2728 postInstall = ''
@@ -30,12 +31,6 @@ stdenv.mkDerivation rec {
3031 ${glib.dev}/bin/glib-compile-schemas $out/share/gsettings-schemas/$name/glib-2.0/schemas
3132 '';
3233
33− preFixup = ''
34− wrapProgram "$out/libexec/gnome-user-share-webdav" \
35− --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
36− --prefix XDG_DATA_DIRS : "$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
37− '';
38−
3934 meta = with stdenv.lib; {
4035 homepage = https://help.gnome.org/users/gnome-user-share/3.8;
4136 description = "Service that exports the contents of the Public folder in your home directory on the local network";