2010-07-29 20:55:16 +02:00
|
|
|
{ stdenv, fetchurl, readline }:
|
2008-01-24 00:39:06 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-11-04 09:29:49 +01:00
|
|
|
name = "rlwrap-${version}";
|
|
|
|
version = "0.43";
|
2010-07-29 20:55:16 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-11-04 09:29:49 +01:00
|
|
|
url = "https://github.com/hanslub42/rlwrap/releases/download/v${version}/${name}.tar.gz";
|
|
|
|
sha256 = "0bzb7ylk2770iv59v2d0gypb21y2xn87m299s9rqm6rdi2vx11lf";
|
2010-07-29 20:55:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ readline ];
|
|
|
|
|
2010-12-17 11:56:35 +01:00
|
|
|
# Be high-bit-friendly
|
|
|
|
preBuild = ''
|
|
|
|
sed -i src/readline.c -e "s@[*]p [<] ' '@(*p >= 0) \\&\\& (*p < ' ')@"
|
|
|
|
'';
|
|
|
|
|
2010-07-29 20:55:16 +02:00
|
|
|
meta = {
|
|
|
|
description = "Readline wrapper for console programs";
|
2017-11-04 09:29:49 +01:00
|
|
|
homepage = https://github.com/hanslub42/rlwrap;
|
2014-09-21 20:08:45 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2015-03-20 16:52:02 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-09-21 20:08:45 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2010-07-29 20:55:16 +02:00
|
|
|
};
|
2008-01-24 00:39:06 +01:00
|
|
|
}
|