nixpkgs/pkgs/applications/misc/xdgmenumaker/default.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, txt2tags, python3Packages, glib, gobject-introspection, wrapGAppsHook }:
2016-04-16 03:35:16 +00:00
python3Packages.buildPythonApplication rec {
pname = "xdgmenumaker";
version = "1.5";
2016-04-16 03:35:16 +00:00
src = fetchFromGitHub {
owner = "gapan";
repo = pname;
2016-11-01 19:23:20 +00:00
rev = version;
sha256 = "1vrsp5c1ah7p4dpwd6aqvinpwzd8crdimvyyr3lbm3c6cwpyjmif";
2016-04-16 03:35:16 +00:00
};
format = "other";
strictDeps = false;
2016-04-16 03:35:16 +00:00
nativeBuildInputs = [
gobject-introspection
2016-04-16 03:35:16 +00:00
txt2tags
wrapGAppsHook
];
buildInputs = [
glib
2016-04-16 03:35:16 +00:00
];
pythonPath = with python3Packages; [
pyxdg
pygobject3
2016-04-16 03:35:16 +00:00
];
makeFlags = [
"PREFIX=${placeholder "out"}"
];
installFlags = [
"DESTDIR="
];
meta = with lib; {
2016-04-16 03:35:16 +00:00
description = "Command line tool that generates XDG menus for several window managers";
homepage = "https://github.com/gapan/xdgmenumaker";
2016-04-16 03:35:16 +00:00
license = licenses.gpl2Plus;
# 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 ];
};
}