2022-07-12 11:56:56 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
pkg-config,
|
|
|
|
gettext,
|
|
|
|
itstool,
|
|
|
|
gtk3,
|
2024-02-24 12:34:50 +00:00
|
|
|
caja,
|
2022-07-12 11:56:56 +00:00
|
|
|
dbus-glib,
|
|
|
|
libnotify,
|
|
|
|
libxml2,
|
|
|
|
libcanberra-gtk3,
|
2024-01-04 20:33:59 +00:00
|
|
|
apacheHttpdPackages,
|
2022-07-12 11:56:56 +00:00
|
|
|
hicolor-icon-theme,
|
|
|
|
mate,
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3,
|
2022-07-12 11:56:56 +00:00
|
|
|
mateUpdateScript,
|
|
|
|
}:
|
2018-01-04 18:22:35 +00:00
|
|
|
|
2024-01-04 20:33:59 +00:00
|
|
|
let
|
|
|
|
inherit (apacheHttpdPackages) apacheHttpd mod_dnssd;
|
|
|
|
in
|
2018-01-04 18:22:35 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mate-user-share";
|
2024-02-24 12:34:50 +00:00
|
|
|
version = "1.28.0";
|
2018-01-04 18:22:35 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 13:21:58 +00:00
|
|
|
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2024-02-24 12:34:50 +00:00
|
|
|
sha256 = "iYVgmZkXllE0jkl+8I81C4YIG5expKcwQHfurlc5rjg=";
|
2018-01-04 18:22:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2020-02-14 14:09:49 +00:00
|
|
|
gettext
|
2018-01-04 18:22:35 +00:00
|
|
|
itstool
|
2019-06-04 17:52:17 +00:00
|
|
|
libxml2
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3
|
2018-01-04 18:22:35 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2024-02-24 12:34:50 +00:00
|
|
|
caja
|
2019-06-04 17:52:17 +00:00
|
|
|
dbus-glib
|
2018-01-04 18:22:35 +00:00
|
|
|
libnotify
|
2018-02-25 02:23:58 +00:00
|
|
|
libcanberra-gtk3
|
|
|
|
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"
|
2021-10-13 16:54:21 +00:00
|
|
|
"--with-modules-path=${apacheHttpd}/modules"
|
2018-01-04 18:22:35 +00:00
|
|
|
"--with-cajadir=$(out)/lib/caja/extensions-2.0"
|
|
|
|
];
|
|
|
|
|
2020-02-14 21:52:51 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-09-27 21:39:18 +00:00
|
|
|
passthru.updateScript = mateUpdateScript { inherit pname; };
|
2021-04-02 19:58:16 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-01-04 18:22:35 +00:00
|
|
|
description = "User level public file sharing for the MATE desktop";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "mate-file-share-properties";
|
2020-02-12 17:51:23 +00:00
|
|
|
homepage = "https://github.com/mate-desktop/mate-user-share";
|
2018-01-04 18:22:35 +00:00
|
|
|
license = with licenses; [ gpl2Plus ];
|
|
|
|
platforms = platforms.unix;
|
2021-09-21 19:45:29 +00:00
|
|
|
maintainers = teams.mate.members;
|
2018-01-04 18:22:35 +00:00
|
|
|
};
|
|
|
|
}
|