2016-04-16 04:35:16 +01:00
|
|
|
{ stdenv, fetchFromGitHub, txt2tags, python2Packages }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "xdgmenumaker-${version}";
|
2018-10-12 22:04:26 +01:00
|
|
|
version = "1.5";
|
2016-04-16 04:35:16 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gapan";
|
|
|
|
repo = "xdgmenumaker";
|
2016-11-01 19:23:20 +00:00
|
|
|
rev = version;
|
2018-10-12 22:04:26 +01:00
|
|
|
sha256 = "1vrsp5c1ah7p4dpwd6aqvinpwzd8crdimvyyr3lbm3c6cwpyjmif";
|
2016-04-16 04:35:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
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 04:35:16 +01:00
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|