2019-06-04 19:52:17 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, itstool, gtk3, dbus-glib, libnotify, libxml2, libcanberra-gtk3, mod_dnssd, apacheHttpd, hicolor-icon-theme, mate, wrapGAppsHook }:
|
2018-01-04 19:22:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mate-user-share";
|
2020-02-12 18:51:23 +01:00
|
|
|
version = "1.24.0";
|
2018-01-04 19:22:35 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-12-13 23:37:37 +01:00
|
|
|
url = "https://pub.mate-desktop.org/releases/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-02-12 18:51:23 +01:00
|
|
|
sha256 = "1h4aabcby96nsg557brzzb0an1qvnawhim2rinzlzg4fhkvdfnr5";
|
2018-01-04 19:22:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
intltool
|
|
|
|
itstool
|
2019-06-04 19:52:17 +02:00
|
|
|
libxml2
|
2018-01-04 19:22:35 +01:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2019-06-04 19:52:17 +02:00
|
|
|
dbus-glib
|
2018-01-04 19:22:35 +01:00
|
|
|
libnotify
|
2018-02-25 03:23:58 +01:00
|
|
|
libcanberra-gtk3
|
2018-02-13 23:44:07 +01:00
|
|
|
mate.caja
|
2018-02-25 03:23:58 +01:00
|
|
|
hicolor-icon-theme
|
2018-01-04 19:22:35 +01: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";
|
2020-02-12 18:51:23 +01:00
|
|
|
homepage = "https://github.com/mate-desktop/mate-user-share";
|
2018-01-04 19:22:35 +01:00
|
|
|
license = with licenses; [ gpl2Plus ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|