2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, autoreconfHook
|
|
|
|
, dconf
|
|
|
|
, evolution-data-server
|
|
|
|
, gdm
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, gnome-desktop
|
|
|
|
, gnome-menus
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk3
|
|
|
|
, itstool
|
|
|
|
, libgweather
|
|
|
|
, libsoup
|
|
|
|
, libwnck3
|
|
|
|
, libxml2
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, polkit
|
|
|
|
, systemd
|
2020-11-12 09:05:59 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gnome-panel";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "3.40.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "man" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-05-20 23:08:51 +00:00
|
|
|
hash = "sha256-nxNQde3GZs8rnKkd41xnA+KxdxwQp3B0FPtlbCilmzs=";
|
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
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dconf
|
|
|
|
evolution-data-server
|
|
|
|
gdm
|
|
|
|
glib
|
|
|
|
gnome-desktop
|
|
|
|
gnome-menus
|
|
|
|
gtk3
|
|
|
|
libgweather
|
|
|
|
libsoup
|
|
|
|
libwnck3
|
|
|
|
polkit
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-eds"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
attrPath = "gnome.${pname}";
|
|
|
|
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";
|
|
|
|
homepage = "https://wiki.gnome.org/Projects/GnomePanel";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|