2019-08-05 11:02:06 -07:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pantheon
|
|
|
|
, substituteAll
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
|
|
|
, pkgconfig
|
|
|
|
, vala
|
|
|
|
, granite
|
|
|
|
, libgee
|
|
|
|
, gettext
|
|
|
|
, gtk3
|
|
|
|
, appstream
|
|
|
|
, gnome-menus
|
|
|
|
, json-glib
|
|
|
|
, plank
|
|
|
|
, bamf
|
|
|
|
, switchboard
|
|
|
|
, libunity
|
|
|
|
, libsoup
|
|
|
|
, wingpanel
|
|
|
|
, zeitgeist
|
|
|
|
, bc
|
2020-05-03 08:48:16 -07:00
|
|
|
, libhandy
|
2019-08-05 11:02:06 -07:00
|
|
|
}:
|
2018-08-20 13:31:18 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-05 15:41:32 -07:00
|
|
|
pname = "wingpanel-applications-menu";
|
2020-06-07 11:04:49 -07:00
|
|
|
version = "2.7.1";
|
2018-08-20 13:31:18 -07:00
|
|
|
|
2019-08-05 15:41:32 -07:00
|
|
|
repoName = "applications-menu";
|
2018-08-20 13:31:18 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
2019-08-05 15:41:32 -07:00
|
|
|
repo = repoName;
|
2018-08-20 13:31:18 -07:00
|
|
|
rev = version;
|
2020-06-07 11:04:49 -07:00
|
|
|
sha256 = "0wsfvyp0z6c612nl348dr6sar0qghhfcgkzcx3108x8v743v7rim";
|
2018-08-20 13:31:18 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = pantheon.updateScript {
|
2019-12-21 22:44:42 -08:00
|
|
|
attrPath = "pantheon.${pname}";
|
2018-08-20 13:31:18 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream
|
|
|
|
gettext
|
2019-05-16 16:08:21 -07:00
|
|
|
meson
|
|
|
|
ninja
|
2018-08-20 13:31:18 -07:00
|
|
|
pkgconfig
|
2019-05-16 16:08:21 -07:00
|
|
|
python3
|
2018-08-20 13:31:18 -07:00
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bamf
|
|
|
|
gnome-menus
|
|
|
|
granite
|
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
libgee
|
2020-05-03 08:48:16 -07:00
|
|
|
libhandy
|
2018-08-20 13:31:18 -07:00
|
|
|
libsoup
|
|
|
|
libunity
|
|
|
|
plank
|
|
|
|
switchboard
|
|
|
|
wingpanel
|
|
|
|
zeitgeist
|
|
|
|
];
|
|
|
|
|
2019-05-16 16:08:21 -07:00
|
|
|
mesonFlags = [
|
2019-09-03 09:38:57 -07:00
|
|
|
"--sysconfdir=${placeholder "out"}/etc"
|
2019-05-16 16:08:21 -07:00
|
|
|
];
|
|
|
|
|
2018-08-20 13:31:18 -07:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
2019-11-25 17:37:39 -08:00
|
|
|
src = ./fix-paths.patch;
|
|
|
|
bc = "${bc}/bin/bc";
|
2018-08-20 13:31:18 -07:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-05-16 16:08:21 -07:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2018-08-20 13:31:18 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Lightweight and stylish app launcher for Pantheon";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/elementary/applications-menu";
|
2018-08-20 13:31:18 -07:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = pantheon.maintainers;
|
|
|
|
};
|
|
|
|
}
|