Subject: [bug#73398] [PATCH] gnu: Add lnav-0.12.3-beta2

From: Sisiutl <[email-masked]>
Date: Fri, 20 Sep 2024 23:39:19 +0200

* gnu/packages/admin.scm (lnav): New variable.

Change-Id: Ie642208e39f485482209e6582314a317a62ced0c
---
 gnu/packages/admin.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 4910327d99..33f04d99ca 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -110,6 +110,7 @@ (define-module (gnu packages admin)
   #:use-module (gnu packages algebra)
   #:use-module (gnu packages attr)
   #:use-module (gnu packages autotools)
+  #:use-module (gnu packages backup)
   #:use-module (gnu packages base)
   #:use-module (gnu packages bash)
   #:use-module (gnu packages bison)
@@ -180,6 +181,7 @@ (define-module (gnu packages admin)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages readline)
   #:use-module (gnu packages ruby)
+  #:use-module (gnu packages rust)
   #:use-module (gnu packages selinux)
   #:use-module (gnu packages serialization)
   #:use-module (gnu packages sqlite)
@@ -6385,3 +6387,38 @@ (define-public sshguard
 services.  It aggregates system logs and blocks repeat offenders using one of
 several firewall backends.")
     (license license:isc)))
+
+(define-public lnav
+  (package
+    (name "lnav")
+    (version "0.12.3-beta2") ;; 0.12.2 hardcodes /usr/share/zoneinfo
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://github.com/tstack/lnav/archive/refs/tags/v" version
+             ".tar.gz"))
+       (sha256
+        (base32 "0gmzxxxjz71q7j01j99lnszgilcakwdirh2lb5m9x0f6fz7hb76g"))))
+    (build-system gnu-build-system)
+    (native-inputs (list autoconf
+                         automake
+                         pcre2
+                         sqlite
+                         ncurses
+                         readline
+                         zlib
+                         lbzip2
+                         curl
+                         libarchive
+                         wireshark
+                         rust
+                         tzdata
+                         perl-digest-sha))
+    (home-page "https://github.com/tstack/lnav")
+    (synopsis "Log file navigator")
+    (description
+     "The Logfile Navigator is a log file viewer for the terminal.")
+    (arguments
+     '(#:tests? #f)) ;; tests fail on beta versions
+    (license license:bsd-2)))
-- 
2.46.0