nixpkgs/pkgs/desktops/mate/mate-user-share/default.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

79 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchurl,
pkg-config,
gettext,
itstool,
gtk3,
caja,
dbus-glib,
libnotify,
libxml2,
libcanberra-gtk3,
apacheHttpdPackages,
hicolor-icon-theme,
mate,
wrapGAppsHook3,
mateUpdateScript,
}:
let
inherit (apacheHttpdPackages) apacheHttpd mod_dnssd;
in
stdenv.mkDerivation rec {
pname = "mate-user-share";
version = "1.28.0";
src = fetchurl {
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "iYVgmZkXllE0jkl+8I81C4YIG5expKcwQHfurlc5rjg=";
};
nativeBuildInputs = [
pkg-config
gettext
itstool
libxml2
wrapGAppsHook3
];
buildInputs = [
gtk3
caja
dbus-glib
libnotify
libcanberra-gtk3
hicolor-icon-theme
# 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"
"--with-cajadir=$(out)/lib/caja/extensions-2.0"
];
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "User level public file sharing for the MATE desktop";
mainProgram = "mate-file-share-properties";
homepage = "https://github.com/mate-desktop/mate-user-share";
license = with licenses; [ gpl2Plus ];
platforms = platforms.unix;
maintainers = teams.mate.members;
};
}