2018-05-06 18:11:09 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, autoreconfHook
|
|
|
|
, dconf
|
|
|
|
, evolution-data-server
|
|
|
|
, gdm
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, gnome-desktop
|
2019-01-09 08:52:58 +00:00
|
|
|
, gnome-flashback
|
2018-05-06 18:11:09 +00:00
|
|
|
, gnome-menus
|
|
|
|
, gnome3
|
2019-02-13 21:47:50 +00:00
|
|
|
, gtk3
|
2018-05-06 18:11:09 +00:00
|
|
|
, itstool
|
|
|
|
, libgweather
|
|
|
|
, libsoup
|
|
|
|
, libwnck3
|
|
|
|
, libxml2
|
|
|
|
, pkgconfig
|
|
|
|
, polkit
|
|
|
|
, systemd
|
|
|
|
, wrapGAppsHook }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "gnome-panel";
|
2019-05-16 01:28:55 +00:00
|
|
|
version = "3.32.0";
|
2018-05-06 18:11:09 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "man" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-05-16 01:28:55 +00:00
|
|
|
sha256 = "0a9zi1jb0b42zd6wx3251cnns9v1w0cbwasmrx9hsj1dsb9pjq3a";
|
2018-05-06 18:11:09 +00: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+=(
|
|
|
|
--prefix XDG_DATA_DIRS : "${gnome-menus}/share:${gnome-flashback}/share"
|
|
|
|
--prefix XDG_CONFIG_DIRS : "${gnome-menus}/etc/xdg:${gnome-flashback}/etc/xdg"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2018-05-06 18:11:09 +00: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 18:11:09 +00: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";
|
|
|
|
homepage = https://wiki.gnome.org/Projects/GnomePanel;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|