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

90 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, 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-09-29 02:50:21 +02:00
version = "3.0.1";
2018-08-20 22:31:18 +02:00
src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
2021-09-29 02:50:21 +02:00
sha256 = "078yi36r452sc33mv2ck8z0icya1lhzhickllrlhc60rdri36sb8";
2018-08-20 22:31:18 +02:00
};
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
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-gtk-theme
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
];
patches = [
./indicators.patch
];
2018-08-20 22:31:18 +02:00
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
preFixup = ''
gappsWrapperArgs+=(
# this theme is required
--prefix XDG_DATA_DIRS : "${elementary-gtk-theme}/share"
)
'';
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;
2018-08-20 22:31:18 +02:00
};
}