nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl, readline }:
2
3stdenv.mkDerivation rec {
4 name = "rlwrap-0.42";
5
6 src = fetchurl {
7 url = "http://utopia.knoware.nl/~hlub/uck/rlwrap/${name}.tar.gz";
8 sha256 = "0i3yz303wscrysyzpdq04h4nrl9ajz9dbwi80risdl5rkm3dhw2s";
9 };
10
11 buildInputs = [ readline ];
12
13 # Be high-bit-friendly
14 preBuild = ''
15 sed -i src/readline.c -e "s@[*]p [<] ' '@(*p >= 0) \\&\\& (*p < ' ')@"
16 '';
17
18 meta = {
19 description = "Readline wrapper for console programs";
20 homepage = http://utopia.knoware.nl/~hlub/uck/rlwrap/;
21 license = stdenv.lib.licenses.gpl2Plus;
22 platforms = stdenv.lib.platforms.unix;
23 maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
24 };
25}