3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome/misc/gnome-panel/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

118 lines
2.4 KiB
Nix
Raw Normal View History

{ stdenv
, lib
2018-05-06 19:11:09 +01:00
, fetchurl
, fetchpatch
2018-05-06 19:11:09 +01:00
, autoreconfHook
, dconf
, evolution-data-server
, gdm
, geocode-glib
2018-05-06 19:11:09 +01:00
, gettext
, glib
, gnome-desktop
, gnome-menus
, gnome
2019-02-13 21:47:50 +00:00
, gtk3
2018-05-06 19:11:09 +01:00
, itstool
, libgweather
, libsoup
2021-06-23 19:22:04 +01:00
, libwnck
2018-05-06 19:11:09 +01:00
, libxml2
2021-01-17 02:21:50 +00:00
, pkg-config
2018-05-06 19:11:09 +01:00
, polkit
, systemd
, wrapGAppsHook
}:
2018-05-06 19:11:09 +01:00
stdenv.mkDerivation rec {
2018-05-06 19:11:09 +01:00
pname = "gnome-panel";
version = "3.44.0";
2018-05-06 19:11:09 +01:00
outputs = [ "out" "dev" "man" ];
src = fetchurl {
2021-01-15 13:21:58 +00:00
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
hash = "sha256-mWVfddAxh2wTDtI8TaIsCZ57zEBIsCVaPDo7vHh7Mao=";
2018-05-06 19:11:09 +01:00
};
patches = [
# Load modules from path in `NIX_GNOME_PANEL_MODULESDIR` environment variable
# instead of gnome-panels libdir so that the NixOS module can make gnome-panel
# load modules from other packages as well.
./modulesdir-env-var.patch
# Add missing geocode-glib-1.0 dependency
# https://gitlab.gnome.org/GNOME/gnome-panel/-/merge_requests/49
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gnome-panel/-/commit/f58a43ec4649a25f1a762b36e1401b81cd2b214b.patch";
sha256 = "sha256-DFqaNUjkLh4xd81qgQpl+568eUZeWyF8LxdZoTgMfCQ=";
})
];
# 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"
)
'';
2018-05-06 19:11:09 +01:00
nativeBuildInputs = [
autoreconfHook
gettext
itstool
libxml2
2021-01-17 02:21:50 +00:00
pkg-config
2018-05-06 19:11:09 +01:00
wrapGAppsHook
];
buildInputs = [
dconf
evolution-data-server
gdm
geocode-glib
2018-05-06 19:11:09 +01:00
glib
gnome-desktop
gnome-menus
2019-02-13 21:47:50 +00:00
gtk3
2018-05-06 19:11:09 +01:00
libgweather
libsoup
2021-06-23 19:22:04 +01:00
libwnck
2018-05-06 19:11:09 +01:00
polkit
systemd
];
configureFlags = [
"--enable-eds"
];
enableParallelBuilding = true;
doCheck = true;
passthru = {
updateScript = gnome.updateScript {
2018-05-06 19:11:09 +01:00
packageName = pname;
attrPath = "gnome.${pname}";
versionPolicy = "odd-unstable";
2018-05-06 19:11:09 +01:00
};
};
meta = with lib; {
2018-05-06 19:11:09 +01:00
description = "Component of Gnome Flashback that provides panels and default applets for the desktop";
homepage = "https://wiki.gnome.org/Projects/GnomePanel";
2018-05-06 19:11:09 +01:00
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
2018-05-06 19:11:09 +01:00
platforms = platforms.linux;
};
}