nixpkgs/pkgs/desktops/gnome/misc/gnome-panel/default.nix
Bobby Rong b59752a065 gnome.gnome-panel: 3.47.1 → 3.49.1
https://gitlab.gnome.org/GNOME/gnome-panel/-/compare/3.47.1...3.49.1

Fixes crash with gsettings-desktop-schemas 45, no build changes.

Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com>
Changelog-reviewed-by: Jan Tojnar <jtojnar@gmail.com>
2023-11-21 08:41:33 +01:00

108 lines
2.0 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ stdenv
, lib
, fetchurl
, autoreconfHook
, dconf
, evolution-data-server
, gdm
, geocode-glib_2
, gettext
, glib
, gnome-desktop
, gnome-menus
, gnome
, gtk3
, itstool
, libgweather
, libwnck
, libxml2
, pkg-config
, polkit
, systemd
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "gnome-panel";
version = "3.49.1";
outputs = [ "out" "dev" "man" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
hash = "sha256-Nhuy4gfQAOBywdLZzUpGWwycZpkANwQ1qSvX4sxGEAI=";
};
patches = [
# Load modules from path in `NIX_GNOME_PANEL_MODULESDIR` environment variable
# instead of gnome-panels libdir so that the NixOS module can make gnome-panel
# load modules from other packages as well.
./modulesdir-env-var.patch
];
# make .desktop Exec absolute
postPatch = ''
patch -p0 <<END_PATCH
+++ gnome-panel/gnome-panel.desktop.in
@@ -7 +7 @@
-Exec=gnome-panel
+Exec=$out/bin/gnome-panel
END_PATCH
'';
preFixup = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "${gnome-menus}/share"
--prefix XDG_CONFIG_DIRS : "${gnome-menus}/etc/xdg"
)
'';
nativeBuildInputs = [
autoreconfHook
gettext
itstool
libxml2
pkg-config
wrapGAppsHook
];
buildInputs = [
dconf
evolution-data-server
gdm
geocode-glib_2
glib
gnome-desktop
gnome-menus
gtk3
libgweather
libwnck
polkit
systemd
];
configureFlags = [
"--enable-eds"
];
enableParallelBuilding = true;
doCheck = true;
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
attrPath = "gnome.${pname}";
versionPolicy = "odd-unstable";
};
};
meta = with lib; {
description = "Component of Gnome Flashback that provides panels and default applets for the desktop";
homepage = "https://wiki.gnome.org/Projects/GnomePanel";
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
platforms = platforms.linux;
};
}