2019-03-07 15:35:21 +00:00
|
|
|
{ stdenv
|
|
|
|
, gettext
|
|
|
|
, fetchurl
|
|
|
|
, apacheHttpd
|
|
|
|
, nautilus
|
|
|
|
, pkgconfig
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, libxml2
|
|
|
|
, systemd
|
|
|
|
, wrapGAppsHook
|
|
|
|
, itstool
|
|
|
|
, libnotify
|
|
|
|
, mod_dnssd
|
|
|
|
, gnome3
|
|
|
|
, libcanberra-gtk3
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-07 15:35:21 +00:00
|
|
|
pname = "gnome-user-share";
|
|
|
|
version = "3.32.0.1";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-03-07 15:35:21 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "16w6n0cjyzp8vln3zspvab8jhjprpvs88xc9x7bvigg0wry74945";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
preConfigure = ''
|
2017-01-27 14:30:33 +00:00
|
|
|
sed -e 's,^LoadModule dnssd_module.\+,LoadModule dnssd_module ${mod_dnssd}/modules/mod_dnssd.so,' \
|
|
|
|
-e 's,''${HTTP_MODULES_PATH},${apacheHttpd}/modules,' \
|
|
|
|
-i data/dav_user_2.4.conf
|
2016-09-18 20:35:23 +01:00
|
|
|
'';
|
|
|
|
|
2019-02-13 21:47:50 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-httpd=${apacheHttpd.out}/bin/httpd"
|
|
|
|
"--with-modules-path=${apacheHttpd.dev}/modules"
|
2019-03-07 15:35:21 +00:00
|
|
|
"--with-systemduserunitdir=${placeholder ''out''}/etc/systemd/user"
|
|
|
|
"--with-nautilusdir=${placeholder ''out''}/lib/nautilus/extensions-3.0"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
libxml2
|
|
|
|
wrapGAppsHook
|
2019-02-13 21:47:50 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-02-13 21:47:50 +00:00
|
|
|
buildInputs = [
|
2019-03-07 15:35:21 +00:00
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
nautilus
|
|
|
|
libnotify
|
|
|
|
libcanberra-gtk3
|
|
|
|
systemd
|
2019-02-13 21:47:50 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-03-07 15:35:21 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://help.gnome.org/users/gnome-user-share/3.8;
|
|
|
|
description = "Service that exports the contents of the Public folder in your home directory on the local network";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|