2024-09-19 14:19:46 +00:00
|
|
|
|
{
|
|
|
|
|
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,
|
|
|
|
|
wrapGAppsHook3,
|
2020-11-12 09:05:59 +00:00
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
pname = "gnome-panel";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
version = "3.52.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
|
outputs = [
|
|
|
|
|
"out"
|
|
|
|
|
"dev"
|
|
|
|
|
"man"
|
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-09-19 14:19:46 +00:00
|
|
|
|
url = "mirror://gnome/sources/gnome-panel/${lib.versions.majorMinor finalAttrs.version}/gnome-panel-${finalAttrs.version}.tar.xz";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
hash = "sha256-nim6iHPN5A1AwpNKRk+PQ7ousbUisZFEfKon3XhTxdQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
|
patches = [
|
|
|
|
|
# Load modules from path in `NIX_GNOME_PANEL_MODULESDIR` environment variable
|
|
|
|
|
# instead of gnome-panel’s libdir so that the NixOS module can make gnome-panel
|
|
|
|
|
# load modules from other packages as well.
|
|
|
|
|
./modulesdir-env-var.patch
|
|
|
|
|
];
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
# 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
|
2021-02-05 17:12:51 +00:00
|
|
|
|
pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
|
wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
dconf
|
|
|
|
|
evolution-data-server
|
|
|
|
|
gdm
|
2022-10-21 18:38:19 +00:00
|
|
|
|
geocode-glib_2
|
2020-04-24 23:36:52 +00:00
|
|
|
|
glib
|
|
|
|
|
gnome-desktop
|
|
|
|
|
gnome-menus
|
|
|
|
|
gtk3
|
|
|
|
|
libgweather
|
2021-06-28 23:13:55 +00:00
|
|
|
|
libwnck
|
2020-04-24 23:36:52 +00:00
|
|
|
|
polkit
|
|
|
|
|
systemd
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
|
"--enable-eds"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
|
updateScript = gnome.updateScript {
|
2024-09-19 14:19:46 +00:00
|
|
|
|
packageName = "gnome-panel";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
versionPolicy = "odd-unstable";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
description = "Component of Gnome Flashback that provides panels and default applets for the desktop";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
mainProgram = "gnome-panel";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gnome-panel";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
};
|
2024-09-19 14:19:46 +00:00
|
|
|
|
})
|