summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2019-04-26 04:36:02 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2019-04-26 04:36:02 +0200
commit7342923d98cbefec61c2d67ce916d83d42f4bc3e (patch)
tree7100eacfd00a0a018a7ff64540e8b730bc8006a2
parent4f7db085711431b277ea7e1ba2a806751a84cd20 (diff)
gnu: wgetpaste: Add and use wget input.
This package has but one purpose; late binding's overkill. * gnu/packages/wget.scm (wgetpaste)[arguments]: Add ‘use-inputs’ phase. [inputs]: Add wget.
-rw-r--r--gnu/packages/wget.scm11
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/wget.scm b/gnu/packages/wget.scm
index 128041318b0..4f8671ad6e2 100644
--- a/gnu/packages/wget.scm
+++ b/gnu/packages/wget.scm
@@ -93,6 +93,13 @@ in downloaded documents to relative links.")
93 (modify-phases %standard-phases 93 (modify-phases %standard-phases
94 (delete 'configure) 94 (delete 'configure)
95 (delete 'build) 95 (delete 'build)
96 (add-before 'install 'use-inputs
97 (lambda* (#:key inputs #:allow-other-keys)
98 (let* ((wget (assoc-ref inputs "wget")))
99 (substitute* "wgetpaste"
100 (("(LC_ALL=C) wget" _ prefix)
101 (format "~a ~a/bin/wget" prefix wget)))
102 #t)))
96 (replace 'install 103 (replace 'install
97 (lambda* (#:key outputs #:allow-other-keys) 104 (lambda* (#:key outputs #:allow-other-keys)
98 (let* ((out (assoc-ref outputs "out")) 105 (let* ((out (assoc-ref outputs "out"))
@@ -100,7 +107,9 @@ in downloaded documents to relative links.")
100 (zsh (string-append out "/share/zsh/site-functions"))) 107 (zsh (string-append out "/share/zsh/site-functions")))
101 (install-file "wgetpaste" bin) 108 (install-file "wgetpaste" bin)
102 (install-file "_wgetpaste" zsh))))) 109 (install-file "_wgetpaste" zsh)))))
103 #:tests? #f)) ; no test target 110 #:tests? #f)) ; no test target
111 (inputs
112 `(("wget" ,wget)))
104 (home-page "http://wgetpaste.zlin.dk/") 113 (home-page "http://wgetpaste.zlin.dk/")
105 (synopsis "Script that automates pasting to a number of pastebin services") 114 (synopsis "Script that automates pasting to a number of pastebin services")
106 (description 115 (description