2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, atk
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gobject-introspection
|
|
|
|
, pango
|
|
|
|
, python3Packages
|
|
|
|
, txt2tags
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2022-06-16 17:23:12 +00:00
|
|
|
, gitUpdater
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "xdgmenumaker";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "2.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gapan";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-07-31 10:19:44 +00:00
|
|
|
sha256 = "uSSKiceHurk+qGVnaYa4uJEuq9FQROdhcotQxPBgPIs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
strictDeps = false;
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
dontWrapGApps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
txt2tags
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
atk
|
|
|
|
gdk-pixbuf
|
|
|
|
pango
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonPath = with python3Packages; [
|
|
|
|
pygobject3
|
2022-06-16 17:23:12 +00:00
|
|
|
pyxdg
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Command line tool that generates XDG menus for several window managers";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "xdgmenumaker";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/gapan/xdgmenumaker";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
# NOTE: exclude darwin from platforms because Travis reports hash mismatch
|
|
|
|
platforms = with platforms; filter (x: !(elem x darwin)) unix;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|