2018-02-25 02:23:58 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, itstool, gtk3, dbus-glib, libnotify, libxml2, libcanberra-gtk3, mod_dnssd, apacheHttpd, hicolor-icon-theme, mate, wrapGAppsHook }:
|
2018-01-04 18:22:35 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mate-user-share-${version}";
|
2018-07-08 22:38:43 +01:00
|
|
|
version = "1.20.1";
|
2018-01-04 18:22:35 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-02-13 22:44:07 +00:00
|
|
|
url = "http://pub.mate-desktop.org/releases/${mate.getRelease version}/${name}.tar.xz";
|
2018-07-08 22:38:43 +01:00
|
|
|
sha256 = "0v5xilk978zl5443vlxf25z8z1g5sw9xl5sq76gvrmdlz2parfrn";
|
2018-01-04 18:22:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
intltool
|
|
|
|
itstool
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2018-02-25 02:23:58 +00:00
|
|
|
dbus-glib
|
2018-01-04 18:22:35 +00:00
|
|
|
libnotify
|
2018-02-25 02:23:58 +00:00
|
|
|
libcanberra-gtk3
|
2018-01-04 18:22:35 +00:00
|
|
|
libxml2
|
2018-02-13 22:44:07 +00:00
|
|
|
mate.caja
|
2018-02-25 02:23:58 +00:00
|
|
|
hicolor-icon-theme
|
2018-01-04 18:22:35 +00:00
|
|
|
# Should mod_dnssd and apacheHttpd be runtime dependencies?
|
|
|
|
# In gnome-user-share they are not.
|
|
|
|
#mod_dnssd
|
|
|
|
#apacheHttpd
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-httpd=${apacheHttpd.out}/bin/httpd"
|
|
|
|
"--with-modules-path=${apacheHttpd.dev}/modules"
|
|
|
|
"--with-cajadir=$(out)/lib/caja/extensions-2.0"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "User level public file sharing for the MATE desktop";
|
|
|
|
homepage = https://github.com/mate-desktop/mate-user-share;
|
|
|
|
license = with licenses; [ gpl2Plus ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|