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

68 lines
1.3 KiB
Nix
Raw Normal View History

2020-05-11 13:42:33 +03:00
{ stdenv
, fetchFromGitHub
, pkgconfig
, python3Packages
, pango
, librsvg
, libxml2
, menu-cache
, xorg
, makeWrapper
, enableXfcePanelApplet ? false
, xfce
, gtk3
2020-05-11 13:42:33 +03:00
}:
2017-11-14 21:28:02 +03:00
stdenv.mkDerivation rec {
2019-06-07 14:45:36 +03:00
pname = "jgmenu";
2020-05-21 22:46:27 +03:00
version = "4.2.1";
2017-11-14 21:28:02 +03:00
src = fetchFromGitHub {
owner = "johanmalm";
2019-06-07 14:45:36 +03:00
repo = pname;
2017-11-14 21:28:02 +03:00
rev = "v${version}";
2020-05-21 22:46:27 +03:00
sha256 = "00q4v31x4q7nm61wda4v0gznv18bm3qs8mp04pcns60qacdv9lkk";
2017-11-14 21:28:02 +03:00
};
nativeBuildInputs = [
pkgconfig
2019-06-07 14:45:36 +03:00
makeWrapper
2017-11-14 21:28:02 +03:00
python3Packages.wrapPython
];
buildInputs = [
pango
librsvg
libxml2
menu-cache
xorg.libXinerama
2019-06-07 14:45:36 +03:00
xorg.libXrandr
python3Packages.python
] ++ stdenv.lib.optionals enableXfcePanelApplet [
gtk3
xfce.libxfce4util
xfce.xfce4-panel
];
configureFlags = [
]
++ stdenv.lib.optionals enableXfcePanelApplet [
"--with-xfce4-panel-applet"
2017-11-14 21:28:02 +03:00
];
postFixup = ''
wrapPythonProgramsIn "$out/lib/jgmenu"
2019-06-07 14:45:36 +03:00
for f in $out/bin/jgmenu{,_run}; do
wrapProgram $f --prefix PATH : $out/bin
done
2017-11-14 21:28:02 +03:00
'';
meta = with stdenv.lib; {
2020-03-05 05:38:48 +03:00
homepage = "https://github.com/johanmalm/jgmenu";
2017-11-14 21:28:02 +03:00
description = "Small X11 menu intended to be used with openbox and tint2";
license = licenses.gpl2;
2018-03-20 01:46:33 +03:00
platforms = platforms.linux;
2017-11-14 21:28:02 +03:00
maintainers = [ maintainers.romildo ];
};
}