mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: ncdu: Use upstream name.
* gnu/packages/ncdu.scm (ncdu-1): New variable, renamed from… (ncdu): …this one, itself renamed from the old ncdu-2. Simple! [name]: Drop suffix. [properties]: Remove obsolete 'upstream-name. (ncdu-2): Redefine as a DEPRECATED-PACKAGE alias of ncdu.
This commit is contained in:
parent
7951892d39
commit
d0d06d8168
1 changed files with 11 additions and 6 deletions
|
@ -30,7 +30,10 @@ (define-module (gnu packages ncdu)
|
||||||
#:use-module (gnu packages perl)
|
#:use-module (gnu packages perl)
|
||||||
#:use-module (gnu packages zig))
|
#: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
|
(package
|
||||||
(name "ncdu")
|
(name "ncdu")
|
||||||
(version "1.18")
|
(version "1.18")
|
||||||
|
@ -55,10 +58,10 @@ (define-public ncdu
|
||||||
version)))
|
version)))
|
||||||
(home-page "https://dev.yorhel.nl/ncdu")))
|
(home-page "https://dev.yorhel.nl/ncdu")))
|
||||||
|
|
||||||
(define-public ncdu-2
|
(define-public ncdu
|
||||||
(package
|
(package
|
||||||
(inherit ncdu)
|
(inherit ncdu-1)
|
||||||
(name "ncdu2") ; To destinguish it from the C based version.
|
(name "ncdu")
|
||||||
(version "2.2.1")
|
(version "2.2.1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -94,5 +97,7 @@ (define-public ncdu-2
|
||||||
(when tests?
|
(when tests?
|
||||||
(invoke "zig" "test" "build.zig")))))))
|
(invoke "zig" "test" "build.zig")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list perl zig))
|
(list perl zig))))
|
||||||
(properties `((upstream-name . "ncdu")))))
|
|
||||||
|
(define-public ncdu-2
|
||||||
|
(deprecated-package "ncdu2" ncdu))
|
||||||
|
|
Loading…
Reference in a new issue