2019-08-05 19:02:06 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2020-07-29 17:33:39 +01:00
|
|
|
, nix-update-script
|
2019-08-05 19:02:06 +01:00
|
|
|
, pantheon
|
|
|
|
, wrapGAppsHook
|
|
|
|
, pkgconfig
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, gala
|
|
|
|
, gtk3
|
|
|
|
, libgee
|
|
|
|
, granite
|
|
|
|
, gettext
|
|
|
|
, mutter
|
|
|
|
, json-glib
|
|
|
|
, python3
|
2019-09-14 02:17:02 +01:00
|
|
|
, elementary-gtk-theme
|
|
|
|
, elementary-icon-theme
|
2019-08-05 19:02:06 +01:00
|
|
|
}:
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wingpanel";
|
2020-07-07 15:41:38 +01:00
|
|
|
version = "2.3.2";
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
2020-04-10 17:13:47 +01:00
|
|
|
rev = version;
|
2020-07-07 15:41:38 +01:00
|
|
|
sha256 = "0sz3m64s5clirmiamx67iq42spba7sggcb29sny44z9f939vly4r";
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2020-07-29 17:33:39 +01:00
|
|
|
updateScript = nix-update-script {
|
2019-12-22 06:44:42 +00:00
|
|
|
attrPath = "pantheon.${pname}";
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-09-14 02:17:02 +01:00
|
|
|
elementary-gtk-theme
|
|
|
|
elementary-icon-theme
|
2018-08-20 21:31:18 +01:00
|
|
|
gala
|
|
|
|
granite
|
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
libgee
|
|
|
|
mutter
|
|
|
|
];
|
|
|
|
|
2019-03-07 22:17:48 +00:00
|
|
|
patches = [
|
|
|
|
./indicators.patch
|
|
|
|
];
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2020-04-20 16:36:29 +01:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# this theme is required
|
|
|
|
--prefix XDG_DATA_DIRS : "${elementary-gtk-theme}/share"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2018-08-20 21:31:18 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "The extensible top panel for Pantheon";
|
|
|
|
longDescription = ''
|
|
|
|
Wingpanel is an empty container that accepts indicators as extensions,
|
|
|
|
including the applications menu.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/elementary/wingpanel";
|
2018-08-20 21:31:18 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = pantheon.maintainers;
|
|
|
|
};
|
|
|
|
}
|