diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-02-11 23:36:47 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-02-11 23:36:47 +0100 |
commit | 71007f170d78ef5283ce3d0e31a3b1c180da0fcf (patch) | |
tree | 1e58b269b0f3d331941c836afe6bc4bdf9e2ca82 /pkgs/tools/misc/rlwrap | |
parent | 17c6edb8da51d11cc75a057c0504185d486e5243 (diff) | |
download | nixpkgs-71007f170d78ef5283ce3d0e31a3b1c180da0fcf.tar nixpkgs-71007f170d78ef5283ce3d0e31a3b1c180da0fcf.tar.gz nixpkgs-71007f170d78ef5283ce3d0e31a3b1c180da0fcf.tar.bz2 nixpkgs-71007f170d78ef5283ce3d0e31a3b1c180da0fcf.tar.lz nixpkgs-71007f170d78ef5283ce3d0e31a3b1c180da0fcf.tar.xz nixpkgs-71007f170d78ef5283ce3d0e31a3b1c180da0fcf.tar.zst nixpkgs-71007f170d78ef5283ce3d0e31a3b1c180da0fcf.zip |
rlwrap: 0.43 -> 0.45
Diffstat (limited to 'pkgs/tools/misc/rlwrap')
-rw-r--r-- | pkgs/tools/misc/rlwrap/default.nix | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/pkgs/tools/misc/rlwrap/default.nix b/pkgs/tools/misc/rlwrap/default.nix index ac1431d3a1b..a78d6f143a1 100644 --- a/pkgs/tools/misc/rlwrap/default.nix +++ b/pkgs/tools/misc/rlwrap/default.nix @@ -1,26 +1,30 @@ -{ lib, stdenv, fetchurl, readline }: +{ lib, stdenv, fetchFromGitHub, autoreconfHook, perl, readline }: stdenv.mkDerivation rec { pname = "rlwrap"; - version = "0.43"; + version = "0.45"; - src = fetchurl { - url = "https://github.com/hanslub42/rlwrap/releases/download/v${version}/${pname}-${version}.tar.gz"; - sha256 = "0bzb7ylk2770iv59v2d0gypb21y2xn87m299s9rqm6rdi2vx11lf"; + src = fetchFromGitHub { + owner = "hanslub42"; + repo = "rlwrap"; + rev = "v${version}"; + sha256 = "1ppkjdnxrxh99g4xaiaglm5bmp24006rfahci0cn1g7zwilkjy8s"; }; - buildInputs = [ readline ]; - - # Be high-bit-friendly - preBuild = '' - sed -i src/readline.c -e "s@[*]p [<] ' '@(*p >= 0) \\&\\& (*p < ' ')@" + postPatch = '' + substituteInPlace src/readline.c \ + --replace "if(*p >= 0 && *p < ' ')" "if(*p >= 0 && (*p >= 0) && (*p < ' '))" ''; - meta = { + nativeBuildInputs = [ autoreconfHook perl ]; + + buildInputs = [ readline ]; + + meta = with lib; { description = "Readline wrapper for console programs"; homepage = "https://github.com/hanslub42/rlwrap"; - license = lib.licenses.gpl2Plus; - platforms = lib.platforms.unix; - maintainers = with lib.maintainers; [ ]; + license = licenses.gpl2Plus; + platforms = platforms.unix; + maintainers = with maintainers; [ SuperSandro2000 ]; }; } |