2020-05-11 12:42:33 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgconfig
|
|
|
|
, python3Packages
|
|
|
|
, pango
|
|
|
|
, librsvg
|
|
|
|
, libxml2
|
|
|
|
, menu-cache
|
|
|
|
, xorg
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
2017-11-14 19:28:02 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-07 13:45:36 +02:00
|
|
|
pname = "jgmenu";
|
2020-05-07 20:38:25 +02:00
|
|
|
version = "4.2.0";
|
2017-11-14 19:28:02 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "johanmalm";
|
2019-06-07 13:45:36 +02:00
|
|
|
repo = pname;
|
2017-11-14 19:28:02 +01:00
|
|
|
rev = "v${version}";
|
2020-05-07 20:38:25 +02:00
|
|
|
sha256 = "1wcmx2yhm6n54w6nymgb8pgfjv411i3zj1vk79q9vr052y1622z0";
|
2017-11-14 19:28:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
2019-06-07 13:45:36 +02:00
|
|
|
makeWrapper
|
2017-11-14 19:28:02 +01:00
|
|
|
python3Packages.wrapPython
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pango
|
|
|
|
librsvg
|
|
|
|
libxml2
|
|
|
|
menu-cache
|
|
|
|
xorg.libXinerama
|
2019-06-07 13:45:36 +02:00
|
|
|
xorg.libXrandr
|
|
|
|
python3Packages.python
|
2017-11-14 19:28:02 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapPythonProgramsIn "$out/lib/jgmenu"
|
2019-06-07 13:45:36 +02:00
|
|
|
for f in $out/bin/jgmenu{,_run}; do
|
|
|
|
wrapProgram $f --prefix PATH : $out/bin
|
|
|
|
done
|
2017-11-14 19:28:02 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-03-05 03:38:48 +01:00
|
|
|
homepage = "https://github.com/johanmalm/jgmenu";
|
2017-11-14 19:28:02 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|