2010-07-29 22:55:16 +04:00
|
|
|
{ stdenv, fetchurl, readline }:
|
2008-01-24 02:39:06 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-11-20 16:26:54 +03:00
|
|
|
name = "rlwrap-0.42";
|
2010-07-29 22:55:16 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://utopia.knoware.nl/~hlub/uck/rlwrap/${name}.tar.gz";
|
2014-11-20 16:26:54 +03:00
|
|
|
sha256 = "0i3yz303wscrysyzpdq04h4nrl9ajz9dbwi80risdl5rkm3dhw2s";
|
2010-07-29 22:55:16 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ readline ];
|
|
|
|
|
2010-12-17 13:56:35 +03:00
|
|
|
# Be high-bit-friendly
|
|
|
|
preBuild = ''
|
|
|
|
sed -i src/readline.c -e "s@[*]p [<] ' '@(*p >= 0) \\&\\& (*p < ' ')@"
|
|
|
|
'';
|
|
|
|
|
2010-07-29 22:55:16 +04:00
|
|
|
meta = {
|
|
|
|
description = "Readline wrapper for console programs";
|
|
|
|
homepage = http://utopia.knoware.nl/~hlub/uck/rlwrap/;
|
2014-09-21 22:08:45 +04:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2015-03-20 18:52:02 +03:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-09-21 22:08:45 +04:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2010-07-29 22:55:16 +04:00
|
|
|
};
|
2008-01-24 02:39:06 +03:00
|
|
|
}
|