Browse Source

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.
gn-latest-20200428
Tobias Geerinckx-Rice 1 year ago
parent
commit
7342923d98
No known key found for this signature in database GPG Key ID: DB0FF884F556D79
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      gnu/packages/wget.scm

+ 10
- 1
gnu/packages/wget.scm View File

@@ -93,6 +93,13 @@ in downloaded documents to relative links.")
(modify-phases %standard-phases
(delete 'configure)
(delete 'build)
(add-before 'install 'use-inputs
(lambda* (#:key inputs #:allow-other-keys)
(let* ((wget (assoc-ref inputs "wget")))
(substitute* "wgetpaste"
(("(LC_ALL=C) wget" _ prefix)
(format "~a ~a/bin/wget" prefix wget)))
#t)))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
@@ -100,7 +107,9 @@ in downloaded documents to relative links.")
(zsh (string-append out "/share/zsh/site-functions")))
(install-file "wgetpaste" bin)
(install-file "_wgetpaste" zsh)))))
#:tests? #f)) ; no test target
#:tests? #f)) ; no test target
(inputs
`(("wget" ,wget)))
(home-page "http://wgetpaste.zlin.dk/")
(synopsis "Script that automates pasting to a number of pastebin services")
(description


Loading…
Cancel
Save