2021-01-10 23:54:33 -08:00
|
|
|
|
{ lib, stdenv
|
2019-03-07 07:35:21 -08:00
|
|
|
|
, gettext
|
2019-09-02 09:45:26 -07:00
|
|
|
|
, meson
|
|
|
|
|
, ninja
|
2019-03-07 07:35:21 -08:00
|
|
|
|
, fetchurl
|
2019-09-02 09:45:26 -07:00
|
|
|
|
, fetchpatch
|
2019-03-07 07:35:21 -08:00
|
|
|
|
, apacheHttpd
|
|
|
|
|
, nautilus
|
2021-01-16 18:21:50 -08:00
|
|
|
|
, pkg-config
|
2019-03-07 07:35:21 -08:00
|
|
|
|
, gtk3
|
|
|
|
|
, glib
|
|
|
|
|
, libxml2
|
|
|
|
|
, systemd
|
|
|
|
|
, wrapGAppsHook
|
|
|
|
|
, itstool
|
|
|
|
|
, libnotify
|
|
|
|
|
, mod_dnssd
|
2021-05-07 14:18:14 -07:00
|
|
|
|
, gnome
|
2019-03-07 07:35:21 -08:00
|
|
|
|
, libcanberra-gtk3
|
2019-09-02 09:45:26 -07:00
|
|
|
|
, python3
|
2019-03-07 07:35:21 -08:00
|
|
|
|
}:
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-07 07:35:21 -08:00
|
|
|
|
pname = "gnome-user-share";
|
2019-09-02 09:45:26 -07:00
|
|
|
|
version = "3.34.0";
|
2018-02-25 12:07:20 -08:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 05:21:58 -08:00
|
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-09-02 09:45:26 -07:00
|
|
|
|
sha256 = "04r9ck9v4i0d31grbli1d4slw2d6dcsfkpaybkwbzi7wnj72l30x";
|
2018-02-25 12:07:20 -08:00
|
|
|
|
};
|
|
|
|
|
|
2019-09-02 09:45:26 -07:00
|
|
|
|
patches = [
|
|
|
|
|
# fix gio-unix-2.0 lookup
|
|
|
|
|
(fetchpatch {
|
2020-03-31 18:11:51 -07:00
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-user-share/commit/8772980d4732c15505b15dccff2ca3c97e96d49d.patch";
|
2019-09-02 09:45:26 -07:00
|
|
|
|
sha256 = "03clzhrx72pq1cbmg2y24hvw4i1xsvrg9ip113fi5bc3w4gcji7p";
|
|
|
|
|
})
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
|
'';
|
|
|
|
|
|
2016-09-18 12:35:23 -07:00
|
|
|
|
preConfigure = ''
|
2017-01-27 06:30:33 -08: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 12:35:23 -07:00
|
|
|
|
'';
|
|
|
|
|
|
2019-09-02 09:45:26 -07:00
|
|
|
|
mesonFlags = [
|
|
|
|
|
"-Dhttpd=${apacheHttpd.out}/bin/httpd"
|
|
|
|
|
"-Dmodules_path=${apacheHttpd.dev}/modules"
|
|
|
|
|
"-Dsystemduserunitdir=${placeholder "out"}/etc/systemd/user"
|
|
|
|
|
# In 3.34.0 it defaults to false but it is silently ignored and always installed.
|
|
|
|
|
# Let’s add it anyway in case they decide to make build respect the option in the future.
|
|
|
|
|
"-Dnautilus_extension=true"
|
2019-03-07 07:35:21 -08:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-16 18:21:50 -08:00
|
|
|
|
pkg-config
|
2019-09-02 09:45:26 -07:00
|
|
|
|
meson
|
|
|
|
|
ninja
|
2019-03-07 07:35:21 -08:00
|
|
|
|
gettext
|
|
|
|
|
itstool
|
|
|
|
|
libxml2
|
|
|
|
|
wrapGAppsHook
|
2019-09-02 09:45:26 -07:00
|
|
|
|
python3
|
2019-02-13 13:47:50 -08:00
|
|
|
|
];
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
2019-02-13 13:47:50 -08:00
|
|
|
|
buildInputs = [
|
2019-03-07 07:35:21 -08:00
|
|
|
|
gtk3
|
|
|
|
|
glib
|
|
|
|
|
nautilus
|
|
|
|
|
libnotify
|
|
|
|
|
libcanberra-gtk3
|
|
|
|
|
systemd
|
2019-02-13 13:47:50 -08:00
|
|
|
|
];
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
2019-03-07 07:35:21 -08:00
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-07 14:18:14 -07:00
|
|
|
|
updateScript = gnome.updateScript {
|
2019-03-07 07:35:21 -08:00
|
|
|
|
packageName = pname;
|
2021-05-07 14:18:14 -07:00
|
|
|
|
attrPath = "gnome.${pname}";
|
2019-03-07 07:35:21 -08:00
|
|
|
|
};
|
|
|
|
|
};
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
|
homepage = "https://help.gnome.org/users/gnome-user-share/3.8";
|
2016-09-18 12:35:23 -07:00
|
|
|
|
description = "Service that exports the contents of the Public folder in your home directory on the local network";
|
2020-04-01 05:40:51 -07:00
|
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 12:35:23 -07:00
|
|
|
|
license = licenses.gpl2;
|
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
};
|
|
|
|
|
}
|