2022-06-10 11:34:39 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, atk
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gobject-introspection
|
|
|
|
, pango
|
|
|
|
, python3Packages
|
|
|
|
, txt2tags
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gitUpdater
|
|
|
|
}:
|
2016-04-16 03:35:16 +00:00
|
|
|
|
2019-12-05 03:47:57 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "xdgmenumaker";
|
2022-09-10 08:38:25 +00:00
|
|
|
version = "2.0";
|
2016-04-16 03:35:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gapan";
|
2019-12-05 03:47:57 +00:00
|
|
|
repo = pname;
|
2016-11-01 19:23:20 +00:00
|
|
|
rev = version;
|
2022-09-10 08:38:25 +00:00
|
|
|
sha256 = "CLFFsc/F6I8UOY/XbViWCAlnnu32E5gtEXg9+KSJqI0=";
|
2016-04-16 03:35:16 +00:00
|
|
|
};
|
|
|
|
|
2019-12-05 03:47:57 +00:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
strictDeps = false;
|
|
|
|
|
2022-06-10 11:34:39 +00:00
|
|
|
dontWrapGApps = true;
|
|
|
|
|
2016-04-16 03:35:16 +00:00
|
|
|
nativeBuildInputs = [
|
2019-12-05 03:47:57 +00:00
|
|
|
gobject-introspection
|
2016-04-16 03:35:16 +00:00
|
|
|
txt2tags
|
2019-12-05 03:47:57 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-06-10 11:34:39 +00:00
|
|
|
atk
|
|
|
|
gdk-pixbuf
|
|
|
|
pango
|
2016-04-16 03:35:16 +00:00
|
|
|
];
|
|
|
|
|
2019-12-05 03:47:57 +00:00
|
|
|
pythonPath = with python3Packages; [
|
|
|
|
pygobject3
|
2022-06-10 11:34:39 +00:00
|
|
|
pyxdg
|
2016-04-16 03:35:16 +00:00
|
|
|
];
|
|
|
|
|
2019-12-05 04:29:12 +00:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
];
|
|
|
|
|
2022-06-10 11:34:39 +00:00
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2022-09-27 21:12:05 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2019-12-05 04:29:12 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-04-16 03:35:16 +00:00
|
|
|
description = "Command line tool that generates XDG menus for several window managers";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/gapan/xdgmenumaker";
|
2022-06-10 11:34:39 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2016-12-08 12:10:25 +00:00
|
|
|
# NOTE: exclude darwin from platforms because Travis reports hash mismatch
|
|
|
|
platforms = with platforms; filter (x: !(elem x darwin)) unix;
|
2016-04-16 03:35:16 +00:00
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|