gnu: ncdu: Update to 2.6.

* gnu/packages/ncdu.scm (ncdu): Update to 2.6.
[source]: Adjust snippet to not remove manpage.
[arguments]: Remove adjustments to phases.
[inputs]: Add zstd:lib.
[native-inputs]: Add pkg-config.
Remove perl.

Change-Id: I6e85f06f22dcd5d62b41009039b984e6b8e65b28
This commit is contained in:
Efraim Flashner 2024-11-13 10:52:32 +02:00 committed by Hilton Chain
parent 368c1f4c5e
commit 097b291e6f
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -20,8 +20,10 @@
(define-module (gnu packages ncdu)
#:use-module (gnu packages)
#:use-module (gnu packages compression)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages zig)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix download)
@ -60,29 +62,19 @@ (define-public ncdu
(package
(inherit ncdu-1)
(name "ncdu")
(version "2.2.2")
(version "2.6")
(source (origin
(method url-fetch)
(uri (string-append "https://dev.yorhel.nl/download/ncdu-"
version ".tar.gz"))
(sha256
(base32
"14zrmcxnrczamqjrib99jga05ixk0dzfav3pd6s1h8vm9q121nch"))
(modules '((guix build utils)))
(snippet
#~(begin
;; Delete a pregenerated man page. We'll build it ourselves.
(delete-file "ncdu.1")))))
"01g5mpvsm78lkd0yin82gyancrl23npy69qcp3d60vmm72yiwirz"))))
(build-system zig-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(delete 'validate-runpath)
(add-after 'build 'build-manpage
(lambda _
(invoke "make" "doc"))))))
(native-inputs (list perl))
(list #:zig zig-0.12))
(inputs (list ncurses `(,zstd "lib")))
(native-inputs (list pkg-config))
(properties `((tunable? . #t)))))
(define-public ncdu-2