aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/curl.scm
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2018-01-08 20:30:10 -0500
committerLeo Famulari <leo@famulari.name>2018-01-08 20:39:38 -0500
commit4880fddd5c6b3a0bb7c7bf316b67d902fae6522f (patch)
tree8fc6cb7c017d63f0ce7979f2200bc7bf0a2e452d /gnu/packages/curl.scm
parent3aad4ed396e29bd3540be5710ef65370b2a3424f (diff)
downloadguix-4880fddd5c6b3a0bb7c7bf316b67d902fae6522f.tar
guix-4880fddd5c6b3a0bb7c7bf316b67d902fae6522f.tar.gz
gnu: kurly: Install some documentation.
* gnu/packages/curl.scm (kurly)[arguments]: Install the README in an 'install-readme' phase and don't install the source code.
Diffstat (limited to 'gnu/packages/curl.scm')
-rw-r--r--gnu/packages/curl.scm12
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm
index 5f6180052f..cccbbc8d99 100644
--- a/gnu/packages/curl.scm
+++ b/gnu/packages/curl.scm
@@ -153,7 +153,17 @@ tunneling, and so on.")
"1q192f457sjypgvwq7grrf8gq8w272p3zf1d5ppc20mriqm0mbc3"))))
(build-system go-build-system)
(arguments
- '(#:import-path "github.com/davidjpeacock/kurly"))
+ `(#:import-path "github.com/davidjpeacock/kurly"
+ #:install-source? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'install-readme
+ (lambda* (#:key outputs import-path #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (readme (string-append "src/" import-path "/README.md"))
+ (misc (string-append out "/share/kurly/misc/")))
+ (install-file readme misc)
+ #t))))))
(inputs
`(("go-github-com-alsm-ioprogress" ,go-github-com-alsm-ioprogress)
("go-github-com-aki237-nscjar" ,go-github-com-aki237-nscjar)