2024-08-28 21:15:54 +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-08-25 07:33:50 +00:00
|
|
|
|
}:
|
2018-05-06 18:11:09 +00:00
|
|
|
|
|
2024-08-28 21:15:54 +00:00
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2018-05-06 18:11:09 +00:00
|
|
|
|
pname = "gnome-panel";
|
2024-03-20 19:03:29 +00:00
|
|
|
|
version = "3.52.0";
|
2018-05-06 18:11:09 +00:00
|
|
|
|
|
2024-08-28 21:15:54 +00:00
|
|
|
|
outputs = [
|
|
|
|
|
"out"
|
|
|
|
|
"dev"
|
|
|
|
|
"man"
|
|
|
|
|
];
|
2018-05-06 18:11:09 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-08-28 21:15:54 +00:00
|
|
|
|
url = "mirror://gnome/sources/gnome-panel/${lib.versions.majorMinor finalAttrs.version}/gnome-panel-${finalAttrs.version}.tar.xz";
|
2024-03-20 19:03:29 +00:00
|
|
|
|
hash = "sha256-nim6iHPN5A1AwpNKRk+PQ7ousbUisZFEfKon3XhTxdQ=";
|
2018-05-06 18:11:09 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-06-01 07:59:58 +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
|
|
|
|
|
];
|
|
|
|
|
|
2019-01-09 08:52:58 +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+=(
|
2020-02-09 00:39:46 +00:00
|
|
|
|
--prefix XDG_DATA_DIRS : "${gnome-menus}/share"
|
|
|
|
|
--prefix XDG_CONFIG_DIRS : "${gnome-menus}/etc/xdg"
|
2019-01-09 08:52:58 +00:00
|
|
|
|
)
|
|
|
|
|
'';
|
|
|
|
|
|
2018-05-06 18:11:09 +00:00
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
autoreconfHook
|
|
|
|
|
gettext
|
|
|
|
|
itstool
|
|
|
|
|
libxml2
|
2021-01-17 02:21:50 +00:00
|
|
|
|
pkg-config
|
2024-04-26 20:24:03 +00:00
|
|
|
|
wrapGAppsHook3
|
2018-05-06 18:11:09 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
dconf
|
|
|
|
|
evolution-data-server
|
|
|
|
|
gdm
|
2022-10-02 20:07:03 +00:00
|
|
|
|
geocode-glib_2
|
2018-05-06 18:11:09 +00:00
|
|
|
|
glib
|
|
|
|
|
gnome-desktop
|
|
|
|
|
gnome-menus
|
2019-02-13 21:47:50 +00:00
|
|
|
|
gtk3
|
2018-05-06 18:11:09 +00:00
|
|
|
|
libgweather
|
2021-06-23 18:22:04 +00:00
|
|
|
|
libwnck
|
2018-05-06 18:11:09 +00:00
|
|
|
|
polkit
|
|
|
|
|
systemd
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
|
"--enable-eds"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
|
updateScript = gnome.updateScript {
|
2024-08-28 21:15:54 +00:00
|
|
|
|
packageName = "gnome-panel";
|
2021-03-20 23:57:24 +00:00
|
|
|
|
versionPolicy = "odd-unstable";
|
2018-05-06 18:11:09 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
|
meta = with lib; {
|
2018-05-06 18:11:09 +00:00
|
|
|
|
description = "Component of Gnome Flashback that provides panels and default applets for the desktop";
|
2024-03-19 02:14:51 +00:00
|
|
|
|
mainProgram = "gnome-panel";
|
2024-04-30 14:14:16 +00:00
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gnome-panel";
|
2024-10-04 19:35:12 +00:00
|
|
|
|
changelog = "https://gitlab.gnome.org/GNOME/gnome-panel/-/blob/${finalAttrs.version}/NEWS?ref_type=tags";
|
2018-05-06 18:11:09 +00:00
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 12:40:51 +00:00
|
|
|
|
maintainers = teams.gnome.members;
|
2018-05-06 18:11:09 +00:00
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
};
|
2024-08-28 21:15:54 +00:00
|
|
|
|
})
|