diff --git a/pkgs/applications/misc/pmenu/default.nix b/pkgs/applications/misc/pmenu/default.nix new file mode 100644 index 000000000000..4798ae5a0248 --- /dev/null +++ b/pkgs/applications/misc/pmenu/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchFromGitLab, pythonPackages, gnome }: + +stdenv.mkDerivation rec { + name = "pmenu-${version}"; + version = "2016-05-13"; + + src = fetchFromGitLab { + owner = "o9000"; + repo = "pmenu"; + rev = "90b722de345cff56f8ec0908a0e8a7d733c0c671"; + sha256 = "15bkvadr7ab44mc8gkdqs3w14cm498mwf72w5rjm2rdh55357jjh"; + }; + + nativeBuildInputs = [ pythonPackages.wrapPython ]; + + buildInputs = [ pythonPackages.pygtk gnome.gnome_menus ]; + + pythonPath = [ pythonPackages.pygtk ]; + + patchPhase = '' + substituteInPlace install.sh --replace "/usr/local" "$out" + ''; + + installPhase = '' + mkdir -p $out/bin $out/share/applications + ./install.sh + ''; + + postFixup = '' + wrapPythonPrograms + ''; + + meta = { + homepage = https://gitlab.com/o9000/pmenu; + description = "Start menu for Linux/BSD"; + license = stdenv.lib.licenses.gpl2; + platforms = stdenv.lib.platforms.unix; + maintainers = [ stdenv.lib.maintainers.romildo ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 17b0c4a23fc8..63ca1c8258db 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13741,6 +13741,8 @@ in plugin-torture = callPackage ../applications/audio/plugin-torture { }; + pmenu = callPackage ../applications/misc/pmenu { }; + poezio = python3Packages.poezio; pommed = callPackage ../os-specific/linux/pommed {};