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

41 lines
892 B
Nix
Raw Normal View History

2017-11-14 19:28:02 +01:00
{ stdenv, fetchFromGitHub, pkgconfig, python3Packages, pango, librsvg, libxml2, menu-cache, xorg }:
stdenv.mkDerivation rec {
name = "jgmenu-${version}";
version = "1.1";
2017-11-14 19:28:02 +01:00
src = fetchFromGitHub {
owner = "johanmalm";
repo = "jgmenu";
rev = "v${version}";
sha256 = "0hnxzy5mm5z6r9gaimfsf7kbpr23khck2fhh3j8bk2lkp53420fz";
2017-11-14 19:28:02 +01:00
};
nativeBuildInputs = [
pkgconfig
python3Packages.wrapPython
];
buildInputs = [
pango
librsvg
libxml2
menu-cache
xorg.libXinerama
];
makeFlags = [ "prefix=$(out)" ];
postFixup = ''
wrapPythonProgramsIn "$out/lib/jgmenu"
'';
meta = with stdenv.lib; {
homepage = https://github.com/johanmalm/jgmenu;
description = "Small X11 menu intended to be used with openbox and tint2";
license = licenses.gpl2;
2018-03-19 23:46:33 +01:00
platforms = platforms.linux;
2017-11-14 19:28:02 +01:00
maintainers = [ maintainers.romildo ];
};
}