You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.nix 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. { stdenv, fetchFromGitHub, pkgconfig, python3Packages, pango, librsvg, libxml2, menu-cache, xorg, makeWrapper }:
  2. stdenv.mkDerivation rec {
  3. pname = "jgmenu";
  4. version = "3.4";
  5. src = fetchFromGitHub {
  6. owner = "johanmalm";
  7. repo = pname;
  8. rev = "v${version}";
  9. sha256 = "1cikndf71wi17qld3rwp38gk0q7zic707zzz0mr7cgn86dc4if3d";
  10. };
  11. nativeBuildInputs = [
  12. pkgconfig
  13. makeWrapper
  14. python3Packages.wrapPython
  15. ];
  16. buildInputs = [
  17. pango
  18. librsvg
  19. libxml2
  20. menu-cache
  21. xorg.libXinerama
  22. xorg.libXrandr
  23. python3Packages.python
  24. ];
  25. makeFlags = [ "prefix=${placeholder "out"}" ];
  26. postFixup = ''
  27. wrapPythonProgramsIn "$out/lib/jgmenu"
  28. for f in $out/bin/jgmenu{,_run}; do
  29. wrapProgram $f --prefix PATH : $out/bin
  30. done
  31. '';
  32. meta = with stdenv.lib; {
  33. homepage = https://github.com/johanmalm/jgmenu;
  34. description = "Small X11 menu intended to be used with openbox and tint2";
  35. license = licenses.gpl2;
  36. platforms = platforms.linux;
  37. maintainers = [ maintainers.romildo ];
  38. };
  39. }