gnu: ncdu2: Delete pregenerated man page from source.

* gnu/packages/ncdu.scm (ncdu2)[source]: Add a snippet.
[arguments]: Adjust 'build-manpage phase accordingly.
This commit is contained in:
Tobias Geerinckx-Rice 2022-12-11 01:00:06 +01:00
parent a4e98faa1e
commit 7951892d39
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -66,7 +66,12 @@ (define-public ncdu-2
version ".tar.gz"))
(sha256
(base32
"0hfimrr7z9zrfkiyj09i8nh4a1rjn7d00y9xzpc7mkyqpkvghjjy"))))
"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
@ -83,7 +88,6 @@ (define-public ncdu-2
(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)