2018-05-06 19:11:09 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, autoreconfHook
|
|
|
|
, dconf
|
|
|
|
, evolution-data-server
|
|
|
|
, gdm
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, gnome-desktop
|
|
|
|
, gnome-menus
|
|
|
|
, gnome3
|
2019-02-13 21:47:50 +00:00
|
|
|
, gtk3
|
2018-05-06 19:11:09 +01:00
|
|
|
, itstool
|
|
|
|
, libgweather
|
|
|
|
, libsoup
|
|
|
|
, libwnck3
|
|
|
|
, libxml2
|
|
|
|
, pkgconfig
|
|
|
|
, polkit
|
|
|
|
, systemd
|
2020-08-25 08:33:50 +01:00
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2018-05-06 19:11:09 +01:00
|
|
|
|
2020-08-25 08:33:50 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-05-06 19:11:09 +01:00
|
|
|
pname = "gnome-panel";
|
2020-10-24 03:57:31 +01:00
|
|
|
version = "3.38.0";
|
2018-05-06 19:11:09 +01:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "man" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-08-25 08:33:50 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-10-24 03:57:31 +01:00
|
|
|
hash = "sha256-GosVrvCgKmyqm5IJyNP7Q+e5h6OAB2aRwj8DFOwwLxU=";
|
2018-05-06 19:11:09 +01:00
|
|
|
};
|
|
|
|
|
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 19:11:09 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
libxml2
|
|
|
|
pkgconfig
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dconf
|
|
|
|
evolution-data-server
|
|
|
|
gdm
|
|
|
|
glib
|
|
|
|
gnome-desktop
|
|
|
|
gnome-menus
|
2019-02-13 21:47:50 +00:00
|
|
|
gtk3
|
2018-05-06 19:11:09 +01:00
|
|
|
libgweather
|
|
|
|
libsoup
|
|
|
|
libwnck3
|
|
|
|
polkit
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-eds"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Component of Gnome Flashback that provides panels and default applets for the desktop";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/GnomePanel";
|
2018-05-06 19:11:09 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2018-05-06 19:11:09 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|