nixpkgs/pkgs/desktops/mate/mate-panel/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

98 lines
1.9 KiB
Nix

{
lib,
stdenv,
fetchurl,
pkg-config,
gettext,
itstool,
glib,
gtk-layer-shell,
gtk3,
libmateweather,
libwnck,
librsvg,
libxml2,
dconf,
dconf-editor,
mate-desktop,
mate-menus,
hicolor-icon-theme,
wayland,
gobject-introspection,
wrapGAppsHook3,
marco,
mateUpdateScript,
}:
stdenv.mkDerivation rec {
pname = "mate-panel";
version = "1.28.4";
src = fetchurl {
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
hash = "sha256-AvCesDFMKsGXtvCJlQpXHNujm/0D1sOguP13JSqWiHQ=";
};
nativeBuildInputs = [
gobject-introspection
gettext
itstool
pkg-config
wrapGAppsHook3
];
buildInputs = [
gtk-layer-shell
libmateweather
libwnck
librsvg
libxml2
dconf
mate-desktop
mate-menus
hicolor-icon-theme
wayland
];
propagatedBuildInputs = [
glib
gtk3
# Optionally for the ca.desrt.dconf-editor.Settings schema
# This is propagated for mate_panel_applet_settings_new and applet's wrapGAppsHook3
dconf-editor
];
# Needed for Wayland support.
configureFlags = [ "--with-in-process-applets=all" ];
env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
makeFlags = [
"INTROSPECTION_GIRDIR=$(out)/share/gir-1.0/"
"INTROSPECTION_TYPELIBDIR=$(out)/lib/girepository-1.0"
];
preFixup = ''
gappsWrapperArgs+=(
# Workspace switcher settings, works only when passed after gtk3 schemas in the wrapper for some reason
--prefix XDG_DATA_DIRS : "${glib.getSchemaDataDirPath marco}"
)
'';
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "MATE panel";
homepage = "https://github.com/mate-desktop/mate-panel";
license = with licenses; [
gpl2Plus
lgpl2Plus
fdl11Plus
];
platforms = platforms.unix;
maintainers = teams.mate.members;
};
}