2019-08-05 11:02:06 -07:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2020-09-25 18:45:33 -07:00
|
|
|
, fetchpatch
|
2020-07-29 09:33:39 -07:00
|
|
|
, nix-update-script
|
2019-08-05 11:02:06 -07:00
|
|
|
, pantheon
|
|
|
|
, substituteAll
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
|
|
|
, pkgconfig
|
|
|
|
, vala
|
|
|
|
, granite
|
|
|
|
, libgee
|
|
|
|
, gettext
|
|
|
|
, gtk3
|
|
|
|
, appstream
|
|
|
|
, gnome-menus
|
|
|
|
, json-glib
|
2020-09-03 18:46:19 -07:00
|
|
|
, elementary-dock
|
2019-08-05 11:02:06 -07:00
|
|
|
, bamf
|
2020-10-12 15:11:46 -07:00
|
|
|
, switchboard-with-plugs
|
2019-08-05 11:02:06 -07:00
|
|
|
, 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-09-03 16:43:09 -07:00
|
|
|
sha256 = "sha256-NeazBzkbdQTC6OzPxxyED4OstMkNkUGtCIaZD67fTnM=";
|
2018-08-20 13:31:18 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2020-07-29 09:33:39 -07:00
|
|
|
updateScript = nix-update-script {
|
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
|
2020-10-12 15:11:46 -07:00
|
|
|
];
|
2018-08-20 13:31:18 -07:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bamf
|
2020-09-03 18:46:19 -07:00
|
|
|
elementary-dock
|
2018-08-20 13:31:18 -07:00
|
|
|
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
|
2020-10-12 15:11:46 -07:00
|
|
|
switchboard-with-plugs
|
2018-08-20 13:31:18 -07:00
|
|
|
wingpanel
|
|
|
|
zeitgeist
|
2020-10-12 15:11:46 -07:00
|
|
|
] ++
|
|
|
|
# applications-menu has a plugin to search switchboard plugins
|
|
|
|
# see https://github.com/NixOS/nixpkgs/issues/100209
|
|
|
|
# wingpanel's wrapper will need to pick up the fact that
|
|
|
|
# applications-menu needs a version of switchboard with all
|
|
|
|
# its plugins for search.
|
|
|
|
switchboard-with-plugs.buildInputs;
|
2018-08-20 13:31:18 -07:00
|
|
|
|
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 = [
|
2020-09-25 18:45:33 -07:00
|
|
|
# Port to Libhandy-1
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/applications-menu/commit/8eb2430e8513e9d37f875c5c9b8b15a968c27127.patch";
|
|
|
|
sha256 = "8Uw9mUw7U5nrAwUDGVpAwoRqb9ah503wQCr9kPbBJIo=";
|
|
|
|
})
|
|
|
|
|
2018-08-20 13:31:18 -07:00
|
|
|
(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;
|
|
|
|
};
|
|
|
|
}
|