nixpkgs/pkgs/desktops/mate/mate-user-share/default.nix

58 lines
1.6 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, gettext, itstool, gtk3, dbus-glib, libnotify, libxml2
, libcanberra-gtk3, mod_dnssd, apacheHttpd, hicolor-icon-theme, mate, wrapGAppsHook, mateUpdateScript }:
2018-01-04 18:22:35 +00:00
stdenv.mkDerivation rec {
pname = "mate-user-share";
2021-08-06 20:08:20 +01:00
version = "1.26.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";
2021-08-06 20:08:20 +01:00
sha256 = "1wh0b4qw5wzpl7sg44lpwjb9r6xllch3xfz8c2cchl8rcgbh2kph";
2018-01-04 18:22:35 +00:00
};
nativeBuildInputs = [
2021-01-17 02:21:50 +00:00
pkg-config
gettext
2018-01-04 18:22:35 +00:00
itstool
libxml2
2018-01-04 18:22:35 +00:00
wrapGAppsHook
];
buildInputs = [
gtk3
dbus-glib
2018-01-04 18:22:35 +00:00
libnotify
libcanberra-gtk3
mate.caja
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}/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;
2021-04-02 20:58:16 +01:00
passthru.updateScript = mateUpdateScript { inherit pname version; };
meta = with lib; {
2018-01-04 18:22:35 +00:00
description = "User level public file sharing for the MATE desktop";
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;
maintainers = teams.mate.members;
2018-01-04 18:22:35 +00:00
};
}