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

27 lines
731 B
Nix
Raw Normal View History

{ stdenv, fetchurl, readline }:
stdenv.mkDerivation rec {
pname = "rlwrap";
2017-11-04 08:29:49 +00:00
version = "0.43";
src = fetchurl {
url = "https://github.com/hanslub42/rlwrap/releases/download/v${version}/${pname}-${version}.tar.gz";
2017-11-04 08:29:49 +00:00
sha256 = "0bzb7ylk2770iv59v2d0gypb21y2xn87m299s9rqm6rdi2vx11lf";
};
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";
2017-11-04 08:29:49 +00:00
homepage = https://github.com/hanslub42/rlwrap;
2014-09-21 18:08:45 +00:00
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.unix;
2014-09-21 18:08:45 +00:00
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
};
}