aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-01-13 10:00:18 +0100
committerLudovic Courtès <ludo@gnu.org>2020-01-13 18:04:58 +0100
commit7ed9c3124d9fb07e0d389250955cada1e54b03b3 (patch)
treed7889f554996a19acda9b0342a795b734042b291 /gnu
parent3f1ed953e8a596dc3a4924758a931b8a774bde5f (diff)
downloadguix-7ed9c3124d9fb07e0d389250955cada1e54b03b3.tar
guix-7ed9c3124d9fb07e0d389250955cada1e54b03b3.tar.gz
gnu: guile-bytestructures: Install 'README.md'.
* gnu/packages/guile.scm (guile-bytestructures)[arguments]: Add 'install-doc' phase.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/guile.scm12
1 files changed, 10 insertions, 2 deletions
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index bcb8ff1a56..4b88c41084 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -595,8 +595,16 @@ Guile's foreign function interface.")
"0q0habjiy3h9cigb7q1br9kz6z212dn2ab31f6dgd3rrmsfn5rvb"))))
(build-system gnu-build-system)
(arguments
- '(#:make-flags
- '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
+ `(#:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
+
+ #:phases (modify-phases %standard-phases
+ (add-after 'install 'install-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (package ,(package-full-name this-package "-"))
+ (doc (string-append out "/share/doc/" package)))
+ (install-file "README.md" doc)
+ #t))))))
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)