Merge pull request #180271 from azahi/xprompt

xprompt: init at 2.5.0

authored by

Anderson Torres and committed by
GitHub
d0490bc9 e7c3f2b4

+58
+56
pkgs/tools/X11/xprompt/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , writeText 5 + , fontconfig 6 + , libX11 7 + , libXft 8 + , libXinerama 9 + , conf ? null 10 + , nix-update-script 11 + }: 12 + 13 + stdenv.mkDerivation rec { 14 + pname = "xprompt"; 15 + version = "2.5.0"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "phillbush"; 19 + repo = "xprompt"; 20 + rev = "v${version}"; 21 + sha256 = "sha256-pOayKngUlrMY3bFsP4Fi+VsOLKCUQU3tdkZ+0OY1SCo="; 22 + }; 23 + 24 + buildInputs = [ 25 + fontconfig 26 + libX11 27 + libXft 28 + libXinerama 29 + ]; 30 + 31 + postPatch = with lib; 32 + let 33 + configFile = 34 + if isDerivation conf || builtins.isPath conf 35 + then conf else writeText "config.h" conf; 36 + in 37 + optionalString (conf != null) "cp ${configFile} config.h"; 38 + 39 + makeFlags = [ "PREFIX=$(out)" ]; 40 + 41 + passthru.updateScript = nix-update-script { 42 + attrPath = pname; 43 + }; 44 + 45 + meta = with lib; { 46 + description = "A dmenu rip-off with contextual completion"; 47 + longDescription = '' 48 + XPrompt is a prompt for X. XPrompt features a text input field where the 49 + user can type in a text subject to tab-completion. 50 + ''; 51 + homepage = "https://github.com/phillbush/xprompt"; 52 + license = licenses.mit; 53 + maintainers = with maintainers; [ azahi ]; 54 + platforms = platforms.unix; 55 + }; 56 + }
+2
pkgs/top-level/all-packages.nix
··· 11856 11856 11857 11857 xfstests = callPackage ../tools/misc/xfstests { }; 11858 11858 11859 + xprompt = callPackage ../tools/X11/xprompt { }; 11860 + 11859 11861 xprintidle = callPackage ../tools/X11/xprintidle {}; 11860 11862 11861 11863 xprintidle-ng = callPackage ../tools/X11/xprintidle-ng {};