3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome-3/core/gnome-user-share/default.nix

75 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv
, gettext
, fetchurl
, apacheHttpd
, nautilus
, pkgconfig
, gtk3
, glib
, libxml2
, systemd
, wrapGAppsHook
, itstool
, libnotify
, mod_dnssd
, gnome3
, libcanberra-gtk3
}:
stdenv.mkDerivation rec {
pname = "gnome-user-share";
version = "3.32.0.1";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "16w6n0cjyzp8vln3zspvab8jhjprpvs88xc9x7bvigg0wry74945";
};
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
'';
2019-02-13 21:47:50 +00:00
configureFlags = [
"--with-httpd=${apacheHttpd.out}/bin/httpd"
"--with-modules-path=${apacheHttpd.dev}/modules"
"--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
];
2019-02-13 21:47:50 +00:00
buildInputs = [
gtk3
glib
nautilus
libnotify
libcanberra-gtk3
systemd
2019-02-13 21:47:50 +00:00
];
doCheck = true;
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
};
};
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;
};
}