at 18.03-beta 26 lines 729 B view raw
1{ stdenv, fetchurl, readline }: 2 3stdenv.mkDerivation rec { 4 name = "rlwrap-${version}"; 5 version = "0.43"; 6 7 src = fetchurl { 8 url = "https://github.com/hanslub42/rlwrap/releases/download/v${version}/${name}.tar.gz"; 9 sha256 = "0bzb7ylk2770iv59v2d0gypb21y2xn87m299s9rqm6rdi2vx11lf"; 10 }; 11 12 buildInputs = [ readline ]; 13 14 # Be high-bit-friendly 15 preBuild = '' 16 sed -i src/readline.c -e "s@[*]p [<] ' '@(*p >= 0) \\&\\& (*p < ' ')@" 17 ''; 18 19 meta = { 20 description = "Readline wrapper for console programs"; 21 homepage = https://github.com/hanslub42/rlwrap; 22 license = stdenv.lib.licenses.gpl2Plus; 23 platforms = stdenv.lib.platforms.unix; 24 maintainers = with stdenv.lib.maintainers; [ fuuzetsu ]; 25 }; 26}