2019-12-05 04:47:57 +01:00
|
|
|
{ stdenv, fetchFromGitHub, txt2tags, python3Packages, glib, gobject-introspection, wrapGAppsHook }:
|
2016-04-16 05:35:16 +02:00
|
|
|
|
2019-12-05 04:47:57 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "xdgmenumaker";
|
2018-10-12 23:04:26 +02:00
|
|
|
version = "1.5";
|
2016-04-16 05:35:16 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gapan";
|
2019-12-05 04:47:57 +01:00
|
|
|
repo = pname;
|
2016-11-01 20:23:20 +01:00
|
|
|
rev = version;
|
2018-10-12 23:04:26 +02:00
|
|
|
sha256 = "1vrsp5c1ah7p4dpwd6aqvinpwzd8crdimvyyr3lbm3c6cwpyjmif";
|
2016-04-16 05:35:16 +02:00
|
|
|
};
|
|
|
|
|
2019-12-05 04:47:57 +01:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
strictDeps = false;
|
|
|
|
|
2016-04-16 05:35:16 +02:00
|
|
|
nativeBuildInputs = [
|
2019-12-05 04:47:57 +01:00
|
|
|
gobject-introspection
|
2016-04-16 05:35:16 +02:00
|
|
|
txt2tags
|
2019-12-05 04:47:57 +01:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
2016-04-16 05:35:16 +02:00
|
|
|
];
|
|
|
|
|
2019-12-05 04:47:57 +01:00
|
|
|
pythonPath = with python3Packages; [
|
|
|
|
pyxdg
|
|
|
|
pygobject3
|
2016-04-16 05:35:16 +02:00
|
|
|
];
|
|
|
|
|
2019-12-05 05:29:12 +01:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"DESTDIR="
|
|
|
|
];
|
|
|
|
|
2016-04-16 05:35:16 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Command line tool that generates XDG menus for several window managers";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/gapan/xdgmenumaker";
|
2016-04-16 05:35:16 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2016-12-08 13:10:25 +01:00
|
|
|
# NOTE: exclude darwin from platforms because Travis reports hash mismatch
|
|
|
|
platforms = with platforms; filter (x: !(elem x darwin)) unix;
|
2016-04-16 05:35:16 +02:00
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|