diff --git a/pkgs/by-name/rl/rlwrap/package.nix b/pkgs/by-name/rl/rlwrap/package.nix index 22187c8cd2ff..ddde37c8bb7a 100644 --- a/pkgs/by-name/rl/rlwrap/package.nix +++ b/pkgs/by-name/rl/rlwrap/package.nix @@ -4,18 +4,19 @@ fetchFromGitHub, autoreconfHook, perl, + libptytty, readline, }: stdenv.mkDerivation (finalAttrs: { pname = "rlwrap"; - version = "0.46.2"; + version = "0.48"; src = fetchFromGitHub { owner = "hanslub42"; repo = "rlwrap"; tag = "v${finalAttrs.version}"; - hash = "sha256-05q24Y097GCcipXEPTbel/YIAtQl4jDyA9JFjDDM41Y="; + hash = "sha256-Szgyjt/KRFEZMu6JX4Ulm2guTMwh9ejzjlfpkITWOI4="; }; nativeBuildInputs = [ @@ -23,14 +24,23 @@ stdenv.mkDerivation (finalAttrs: { perl ]; - buildInputs = [ readline ]; + buildInputs = [ + libptytty + readline + ]; env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Wno-error=implicit-function-declaration"; + # no environment to compile completion.c, update its time to avoid recompiling + preBuild = '' + touch src/completion.rb + touch src/completion.c + ''; + meta = { description = "Readline wrapper for console programs"; homepage = "https://github.com/hanslub42/rlwrap"; - changelog = "https://github.com/hanslub42/rlwrap/raw/refs/tags/v${finalAttrs.version}/NEWS"; + changelog = "https://github.com/hanslub42/rlwrap/raw/${finalAttrs.src.rev}/NEWS"; license = lib.licenses.gpl2Plus; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ jlesquembre ];