Skip to content

Commit 233f467

Browse files
rlwrap: 0.46.2 -> 0.48 (#452874)
2 parents ca80a63 + 7786d21 commit 233f467

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

pkgs/by-name/rl/rlwrap/package.nix

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,43 @@
44
fetchFromGitHub,
55
autoreconfHook,
66
perl,
7+
libptytty,
78
readline,
89
}:
910

1011
stdenv.mkDerivation (finalAttrs: {
1112
pname = "rlwrap";
12-
version = "0.46.2";
13+
version = "0.48";
1314

1415
src = fetchFromGitHub {
1516
owner = "hanslub42";
1617
repo = "rlwrap";
1718
tag = "v${finalAttrs.version}";
18-
hash = "sha256-05q24Y097GCcipXEPTbel/YIAtQl4jDyA9JFjDDM41Y=";
19+
hash = "sha256-Szgyjt/KRFEZMu6JX4Ulm2guTMwh9ejzjlfpkITWOI4=";
1920
};
2021

2122
nativeBuildInputs = [
2223
autoreconfHook
2324
perl
2425
];
2526

26-
buildInputs = [ readline ];
27+
buildInputs = [
28+
libptytty
29+
readline
30+
];
2731

2832
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Wno-error=implicit-function-declaration";
2933

34+
# no environment to compile completion.c, update its time to avoid recompiling
35+
preBuild = ''
36+
touch src/completion.rb
37+
touch src/completion.c
38+
'';
39+
3040
meta = {
3141
description = "Readline wrapper for console programs";
3242
homepage = "https://github.com/hanslub42/rlwrap";
33-
changelog = "https://github.com/hanslub42/rlwrap/raw/refs/tags/v${finalAttrs.version}/NEWS";
43+
changelog = "https://github.com/hanslub42/rlwrap/raw/${finalAttrs.src.rev}/NEWS";
3444
license = lib.licenses.gpl2Plus;
3545
platforms = lib.platforms.unix;
3646
maintainers = with lib.maintainers; [ jlesquembre ];

0 commit comments

Comments
 (0)