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