aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2021-06-11 00:32:43 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2021-06-11 00:37:14 +0200
commit5372f7dd5a422f8f3c5aac5e1824f322919a265a (patch)
tree1b8ed46597f92f98c721985ccc2602fc72d7455d
parent30508a4f744c76fc96ebbb414cdfbfc8e4a6afe1 (diff)
downloadguix-5372f7dd5a422f8f3c5aac5e1824f322919a265a.tar
guix-5372f7dd5a422f8f3c5aac5e1824f322919a265a.tar.gz
gnu: squashfs-tools: Install some documentation.
* gnu/packages/compression.scm (squashfs-tools)[arguments]: Add a new 'install-documentation phase. Remove an obsolete #t whilst here.
-rw-r--r--gnu/packages/compression.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index c1677f066f..156219f3f3 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -887,8 +887,13 @@ time for compression ratio.")
(modify-phases %standard-phases
(replace 'configure
(lambda _
- (chdir "squashfs-tools")
- #t)))))
+ (chdir "squashfs-tools")))
+ (add-after 'install 'install-documentation
+ ;; Install what very little usage documentation is provided.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (string-append out "/share/doc/" ,name)))
+ (install-file "../USAGE" doc)))))))
(inputs
`(("lz4" ,lz4)
("lzo" ,lzo)