2010-07-29 19:55:16 +01:00
|
|
|
{ stdenv, fetchurl, readline }:
|
2008-01-23 23:39:06 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-07-29 19:55:16 +01:00
|
|
|
name = "rlwrap-0.37";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://utopia.knoware.nl/~hlub/uck/rlwrap/${name}.tar.gz";
|
|
|
|
sha256 = "1gcb95i839pwn9a3phs2wq7bwz9f6v8sydq6lf9y4gm3hk0s40w4";
|
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
|
|
|
homepage = http://utopia.knoware.nl/~hlub/uck/rlwrap/;
|
|
|
|
};
|
2008-01-23 23:39:06 +00:00
|
|
|
}
|