nixpkgs/pkgs/applications/misc/xdgmenumaker/default.nix
R. RyanTM 89e38721a4 xdgmenumaker: 1.4 -> 1.5 (#47708)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/xdgmenumaker/versions
2018-10-12 23:04:26 +02:00

40 lines
1.0 KiB
Nix

{ stdenv, fetchFromGitHub, txt2tags, python2Packages }:
stdenv.mkDerivation rec {
name = "xdgmenumaker-${version}";
version = "1.5";
src = fetchFromGitHub {
owner = "gapan";
repo = "xdgmenumaker";
rev = version;
sha256 = "1vrsp5c1ah7p4dpwd6aqvinpwzd8crdimvyyr3lbm3c6cwpyjmif";
};
nativeBuildInputs = [
txt2tags
python2Packages.wrapPython
];
pythonPath = [
python2Packages.pyxdg
python2Packages.pygtk
];
installPhase = ''
make install PREFIX=$out DESTDIR=
wrapProgram "$out/bin/xdgmenumaker" \
--prefix XDG_DATA_DIRS : "$out/share"
wrapPythonPrograms
'';
meta = with stdenv.lib; {
description = "Command line tool that generates XDG menus for several window managers";
homepage = https://github.com/gapan/xdgmenumaker;
license = licenses.gpl2Plus;
# NOTE: exclude darwin from platforms because Travis reports hash mismatch
platforms = with platforms; filter (x: !(elem x darwin)) unix;
maintainers = [ maintainers.romildo ];
};
}