1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00
nixpkgs/pkgs/applications/misc/xdgmenumaker/default.nix
2017-02-24 07:24:16 -03:00

40 lines
1 KiB
Nix

{ stdenv, fetchFromGitHub, txt2tags, python2Packages }:
stdenv.mkDerivation rec {
name = "xdgmenumaker-${version}";
version = "1.4";
src = fetchFromGitHub {
owner = "gapan";
repo = "xdgmenumaker";
rev = version;
sha256 = "0i909dk9chdsc7njp5llgm5xlag4lr0nkxkwl1g5lf8cvdjrawh2";
};
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 ];
};
}