Merge pull request #178812 from azahi/pmenu

pmenu: init at 3.0.1

authored by Anderson Torres and committed by GitHub 41c91c48 fd12bdb8

+62
+60
pkgs/tools/X11/pmenu/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , writeText 5 + , fontconfig 6 + , imlib2 7 + , libX11 8 + , libXext 9 + , libXft 10 + , libXinerama 11 + , libXrender 12 + , conf ? null 13 + }: 14 + 15 + stdenv.mkDerivation rec { 16 + pname = "pmenu"; 17 + version = "3.0.1"; 18 + 19 + src = fetchFromGitHub { 20 + owner = "phillbush"; 21 + repo = "pmenu"; 22 + rev = "v${version}"; 23 + sha256 = "sha256-xeOiJEOPz5QEMlWP6bWhTjmj4tfNqh3rsEVmnKvrKuM="; 24 + }; 25 + 26 + buildInputs = [ 27 + fontconfig 28 + imlib2 29 + libX11 30 + libXext 31 + libXft 32 + libXinerama 33 + libXrender 34 + ]; 35 + 36 + postPatch = let 37 + configFile = 38 + if lib.isDerivation conf || builtins.isPath conf 39 + then conf else writeText "config.h" conf; 40 + in 41 + lib.optionalString (conf != null) "mv ${configFile} config.h"; 42 + 43 + makeFlags = [ 44 + "INSTALL=install" 45 + "PREFIX=\${out}" 46 + ]; 47 + 48 + meta = with lib; { 49 + description = "A pie-menu tool"; 50 + longDescription = '' 51 + πmenu is a pie menu utility for X. πmenu receives a menu specification in 52 + stdin, shows a menu for the user to select one of the options, and outputs 53 + the option selected to stdout. 54 + ''; 55 + homepage = "https://github.com/phillbush/pmenu"; 56 + license = licenses.mit; 57 + maintainers = with maintainers; [ azahi ]; 58 + platforms = platforms.unix; 59 + }; 60 + }
+2
pkgs/top-level/all-packages.nix
··· 9542 9542 9543 9543 pm2 = nodePackages.pm2; 9544 9544 9545 + pmenu = callPackage ../tools/X11/pmenu { }; 9546 + 9545 9547 pngcheck = callPackage ../tools/graphics/pngcheck { }; 9546 9548 9547 9549 pngcrush = callPackage ../tools/graphics/pngcrush { };