guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20/46: gnu: ncdu2: Delete pregenerated man page from source.


From: guix-commits
Subject: 20/46: gnu: ncdu2: Delete pregenerated man page from source.
Date: Fri, 16 Dec 2022 21:38:58 -0500 (EST)

nckx pushed a commit to branch master
in repository guix.

commit 7951892d39211aaeccefeab9a5971ec08572cce8
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Dec 11 01:00:06 2022 +0100

    gnu: ncdu2: Delete pregenerated man page from source.
    
    * gnu/packages/ncdu.scm (ncdu2)[source]: Add a snippet.
    [arguments]: Adjust 'build-manpage phase accordingly.
---
 gnu/packages/ncdu.scm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ncdu.scm b/gnu/packages/ncdu.scm
index 6f541878fc..6b802aafa0 100644
--- a/gnu/packages/ncdu.scm
+++ b/gnu/packages/ncdu.scm
@@ -66,7 +66,12 @@ ncurses installed.")
                                   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 @@ 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]