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

71 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-05-11 10:42:33 +00:00
, fetchFromGitHub
, pkg-config
2020-05-11 10:42:33 +00:00
, python3Packages
, pango
, librsvg
, libxml2
, menu-cache
, xorg
, makeWrapper
, enableXfcePanelApplet ? false
, xfce
, gtk3
2022-10-31 17:53:05 +00:00
, gitUpdater
2020-05-11 10:42:33 +00:00
}:
2017-11-14 18:28:02 +00:00
stdenv.mkDerivation rec {
2019-06-07 11:45:36 +00:00
pname = "jgmenu";
2022-10-31 17:55:07 +00:00
version = "4.4.1";
2017-11-14 18:28:02 +00:00
src = fetchFromGitHub {
owner = "johanmalm";
2019-06-07 11:45:36 +00:00
repo = pname;
2017-11-14 18:28:02 +00:00
rev = "v${version}";
2022-10-31 17:55:07 +00:00
sha256 = "sha256-UC92zyuMVjyMLNEOBMElO8wCWYgwWRZAGLEOdTPNMak=";
2017-11-14 18:28:02 +00:00
};
nativeBuildInputs = [
pkg-config
2019-06-07 11:45:36 +00:00
makeWrapper
2017-11-14 18:28:02 +00:00
python3Packages.wrapPython
];
buildInputs = [
pango
librsvg
libxml2
menu-cache
xorg.libXinerama
2019-06-07 11:45:36 +00:00
xorg.libXrandr
python3Packages.python
2021-01-15 05:42:41 +00:00
] ++ lib.optionals enableXfcePanelApplet [
gtk3
xfce.libxfce4util
xfce.xfce4-panel
];
configureFlags = [
]
2021-01-15 05:42:41 +00:00
++ lib.optionals enableXfcePanelApplet [
"--with-xfce4-panel-applet"
2017-11-14 18:28:02 +00:00
];
postFixup = ''
wrapPythonProgramsIn "$out/lib/jgmenu"
2019-06-07 11:45:36 +00:00
for f in $out/bin/jgmenu{,_run}; do
wrapProgram $f --prefix PATH : $out/bin
done
2017-11-14 18:28:02 +00:00
'';
2022-10-31 17:53:05 +00:00
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
meta = with lib; {
2020-03-05 02:38:48 +00:00
homepage = "https://github.com/johanmalm/jgmenu";
2017-11-14 18:28:02 +00:00
description = "Small X11 menu intended to be used with openbox and tint2";
2021-02-08 00:55:34 +00:00
license = licenses.gpl2Plus;
2018-03-19 22:46:33 +00:00
platforms = platforms.linux;
2017-11-14 18:28:02 +00:00
maintainers = [ maintainers.romildo ];
};
}