nixpkgs/pkgs/desktops/pantheon/desktop/wingpanel/default.nix

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

93 lines
1.6 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
, wrapGAppsHook
2021-01-17 03:21:50 +01:00
, pkg-config
, meson
, ninja
, vala
, gala
, gtk3
, libgee
, granite
, gettext
, mutter
2021-04-09 10:52:23 +02:00
, mesa
, json-glib
, python3
, elementary-gtk-theme
, elementary-icon-theme
}:
2018-08-20 22:31:18 +02:00
stdenv.mkDerivation rec {
pname = "wingpanel";
2021-12-19 02:40:41 +01:00
version = "3.0.2";
2018-08-20 22:31:18 +02:00
src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
2021-12-19 02:40:41 +01:00
sha256 = "sha256-WvkQx+9YjKCINpyVg8KjCV0GAb0rJfblSFaO14/4oas=";
2018-08-20 22:31:18 +02:00
};
patches = [
./indicators.patch
];
2018-08-20 22:31:18 +02:00
nativeBuildInputs = [
gettext
meson
ninja
2021-01-17 03:21:50 +01:00
pkg-config
2018-08-20 22:31:18 +02:00
python3
vala
wrapGAppsHook
];
buildInputs = [
elementary-icon-theme
2018-08-20 22:31:18 +02:00
gala
granite
gtk3
json-glib
libgee
mutter
2021-04-09 10:52:23 +02:00
mesa # for libEGL
2018-08-20 22:31:18 +02:00
];
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
preFixup = ''
gappsWrapperArgs+=(
# this GTK theme is required
--prefix XDG_DATA_DIRS : "${elementary-gtk-theme}/share"
# the icon theme is required
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS"
)
'';
2021-12-19 02:40:41 +01:00
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};
meta = with lib; {
2018-08-20 22:31:18 +02:00
description = "The extensible top panel for Pantheon";
longDescription = ''
Wingpanel is an empty container that accepts indicators as extensions,
including the applications menu.
'';
homepage = "https://github.com/elementary/wingpanel";
2021-07-18 02:06:28 +02:00
license = licenses.gpl3Plus;
2018-08-20 22:31:18 +02:00
platforms = platforms.linux;
maintainers = teams.pantheon.members;
2021-10-28 04:47:36 +02:00
mainProgram = "io.elementary.wingpanel";
2018-08-20 22:31:18 +02:00
};
}