lnav: fix running in tmux

This commit is contained in:
Guillaume Girol 2025-05-25 12:00:00 +00:00
parent 063f43f2db
commit 511c01740c

View file

@ -1,10 +1,10 @@
{ {
lib, lib,
stdenv, stdenv,
fetchpatch,
fetchFromGitHub, fetchFromGitHub,
pcre2, pcre2,
sqlite, sqlite,
ncurses,
readline, readline,
zlib, zlib,
bzip2, bzip2,
@ -34,6 +34,16 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-XS3/km2sJwRnWloLKu9X9z07+qBFRfUsaRpZVYjoclI="; hash = "sha256-XS3/km2sJwRnWloLKu9X9z07+qBFRfUsaRpZVYjoclI=";
}; };
patches = [
# fixes lnav in tmux by patching vendored dependency notcurses
# https://github.com/tstack/lnav/issues/1390
# remove on next release
(fetchpatch {
url = "https://github.com/tstack/lnav/commit/5e0bfa483714f05397265a690960d23ae22e1838.patch";
hash = "sha256-dArPJik9KVI0KQjGw8W11oqGrbsBCNOr93gaH3yDPpo=";
})
];
enableParallelBuilding = true; enableParallelBuilding = true;
separateDebugInfo = true; separateDebugInfo = true;
@ -59,7 +69,6 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = buildInputs =
[ [
bzip2 bzip2
ncurses
pcre2 pcre2
readline readline
sqlite sqlite