@@ -0,0 +1,40 @@
1+{ stdenv, fetchFromGitHub, pkgconfig, python3Packages, pango, librsvg, libxml2, menu-cache, xorg }:
2+
3+stdenv.mkDerivation rec {
4+ name = "jgmenu-${version}";
5+ version = "0.7.4";
6+
7+ src = fetchFromGitHub {
8+ owner = "johanmalm";
9+ repo = "jgmenu";
10+ rev = "v${version}";
11+ sha256 = "0vim7balxrxhbgq4jvf80lbh57xbw3qmhapy7n2iyv443ih4a7hi";
12+ };
13+
14+ nativeBuildInputs = [
15+ pkgconfig
16+ python3Packages.wrapPython
17+ ];
18+
19+ buildInputs = [
20+ pango
21+ librsvg
22+ libxml2
23+ menu-cache
24+ xorg.libXinerama
25+ ];
26+
27+ makeFlags = [ "prefix=$(out)" ];
28+
29+ postFixup = ''
30+ wrapPythonProgramsIn "$out/lib/jgmenu"
31+ '';
32+
33+ meta = with stdenv.lib; {
34+ homepage = https://github.com/johanmalm/jgmenu;
35+ description = "Small X11 menu intended to be used with openbox and tint2";
36+ license = licenses.gpl2;
37+ platforms = platforms.unix;
38+ maintainers = [ maintainers.romildo ];
39+ };
40+}