nixpkgs/pkgs/tools/misc/rlwrap/default.nix

26 lines
686 B
Nix
Raw Normal View History

{ stdenv, fetchurl, readline }:
stdenv.mkDerivation rec {
2014-11-20 14:26:54 +01:00
name = "rlwrap-0.42";
src = fetchurl {
url = "http://utopia.knoware.nl/~hlub/uck/rlwrap/${name}.tar.gz";
2014-11-20 14:26:54 +01:00
sha256 = "0i3yz303wscrysyzpdq04h4nrl9ajz9dbwi80risdl5rkm3dhw2s";
};
buildInputs = [ readline ];
# Be high-bit-friendly
preBuild = ''
sed -i src/readline.c -e "s@[*]p [<] ' '@(*p >= 0) \\&\\& (*p < ' ')@"
'';
meta = {
description = "Readline wrapper for console programs";
homepage = http://utopia.knoware.nl/~hlub/uck/rlwrap/;
2014-09-21 20:08:45 +02:00
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.unix;
2014-09-21 20:08:45 +02:00
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
};
}