summaryrefslogtreecommitdiff
path: root/gnu/packages/ncdu.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-01-30 11:33:18 +0200
committerEfraim Flashner <efraim@flashner.co.il>2023-01-30 12:39:40 +0200
commit4cf1acc7f3033b50b0bf19e02c9f522d522d338c (patch)
tree9fd64956ee60304c15387eb394cd649e49f01467 /gnu/packages/ncdu.scm
parentedb8c09addd186d9538d43b12af74d6c7aeea082 (diff)
parent595b53b74e3ef57a1c0c96108ba86d38a170a241 (diff)
Merge remote-tracking branch 'origin/master' into core-updates
Conflicts: doc/guix.texi gnu/local.mk gnu/packages/admin.scm gnu/packages/base.scm gnu/packages/chromium.scm gnu/packages/compression.scm gnu/packages/databases.scm gnu/packages/diffoscope.scm gnu/packages/freedesktop.scm gnu/packages/gnome.scm gnu/packages/gnupg.scm gnu/packages/guile.scm gnu/packages/inkscape.scm gnu/packages/llvm.scm gnu/packages/openldap.scm gnu/packages/pciutils.scm gnu/packages/ruby.scm gnu/packages/samba.scm gnu/packages/sqlite.scm gnu/packages/statistics.scm gnu/packages/syndication.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/version-control.scm gnu/packages/xml.scm guix/build-system/copy.scm guix/scripts/home.scm
Diffstat (limited to 'gnu/packages/ncdu.scm')
-rw-r--r--gnu/packages/ncdu.scm35
1 files changed, 23 insertions, 12 deletions
diff --git a/gnu/packages/ncdu.scm b/gnu/packages/ncdu.scm
index 9f238c06e7..feea8f8819 100644
--- a/gnu/packages/ncdu.scm
+++ b/gnu/packages/ncdu.scm
@@ -30,17 +30,20 @@
#:use-module (gnu packages perl)
#:use-module (gnu packages zig))
-(define-public ncdu
+(define-public ncdu-1
+ ;; This old version is ‘LTS’. Version 2 works fine and has more features,
+ ;; but Zig is still a fast-moving target and doesn't support cross-compilation
+ ;; yet, so we'll keep both for just a little longer.
(package
(name "ncdu")
- (version "1.17")
+ (version "1.18")
(source (origin
(method url-fetch)
(uri (string-append "https://dev.yorhel.nl/download/ncdu-"
version ".tar.gz"))
(sha256
(base32
- "1wfvdajln0iy7364nxkg4bpgdv8l3b6a9bnkhy67icqsxnl4a1w1"))))
+ "15czid6584j7vclwrw85ihahknghxv2w6b9mrk9cbjc0cnls2drw"))))
(build-system gnu-build-system)
(inputs (list ncurses))
(synopsis "Ncurses-based disk usage analyzer")
@@ -55,23 +58,30 @@ ncurses installed.")
version)))
(home-page "https://dev.yorhel.nl/ncdu")))
-(define-public ncdu-2
+(define-public ncdu
(package
- (inherit ncdu)
- (name "ncdu2") ; To destinguish it from the C based version.
- (version "2.1.2")
+ (inherit ncdu-1)
+ (name "ncdu")
+ (version "2.2.1")
(source (origin
(method url-fetch)
(uri (string-append "https://dev.yorhel.nl/download/ncdu-"
version ".tar.gz"))
(sha256
(base32
- "1p66691xgpljx1y92b4bfpn5rr7gnwbr5x3bf8bc78qq6vq6w3cy"))))
+ "0hfimrr7z9zrfkiyj09i8nh4a1rjn7d00y9xzpc7mkyqpkvghjjy"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ ;; Delete a pregenerated man page. We'll build it ourselves.
+ (delete-file "ncdu.1")))))
(arguments
(list
#:make-flags
#~(list (string-append "PREFIX=" #$output)
- (string-append "CC=" #$(cc-for-target)))
+ (string-append "CC=" #$(cc-for-target))
+ ;; XXX By default, zig builds with -march=native!
+ (string-append "ZIG_FLAGS=-Drelease-fast -Dcpu=baseline"))
#:phases
#~(modify-phases %standard-phases
(delete 'configure) ; No configure script.
@@ -81,12 +91,13 @@ ncurses installed.")
(mkdtemp "/tmp/zig-cache-XXXXXX"))))
(add-after 'build 'build-manpage
(lambda _
- (delete-file "ncdu.1")
(invoke "make" "doc")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "zig" "test" "build.zig")))))))
(native-inputs
- (list perl zig))
- (properties `((upstream-name . "ncdu")))))
+ (list perl zig))))
+
+(define-public ncdu-2
+ (deprecated-package "ncdu2" ncdu))