1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/tools/misc/rlwrap/default.nix
Michael Raskin 55afe4bc5e Patch rlwrap to support high-bit characters
svn path=/nixpkgs/trunk/; revision=25167
2010-12-17 10:56:35 +00:00

23 lines
538 B
Nix

{ stdenv, fetchurl, readline }:
stdenv.mkDerivation rec {
name = "rlwrap-0.37";
src = fetchurl {
url = "http://utopia.knoware.nl/~hlub/uck/rlwrap/${name}.tar.gz";
sha256 = "1gcb95i839pwn9a3phs2wq7bwz9f6v8sydq6lf9y4gm3hk0s40w4";
};
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/;
};
}