gnu: protonvpn-cli: Stop propagating inputs.
* gnu/packages/vpn.scm (protonvpn-cli)[inputs]: Add dialog, iproute2, iptables, ncurses, openvpn, procps, python-requests, and which. [arguments]: Add a 'wrap-wrapper' phase. Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
parent
88795880d7
commit
bcfa8b4a28
1 changed files with 32 additions and 6 deletions
|
@ -364,16 +364,42 @@ traversing network address translators (@dfn{NAT}s) and firewalls.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0y7v9ikrmy5dbjlpbpacp08gy838i8z54m8m4ps7ldk1j6kyia3n"))))
|
(base32 "0y7v9ikrmy5dbjlpbpacp08gy838i8z54m8m4ps7ldk1j6kyia3n"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments '(#:tests? #f)) ; no tests in repo
|
(arguments
|
||||||
|
'(#:tests? #f ; no tests in repo
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'wrap 'wrap-wrapper
|
||||||
|
;; Wrap entrypoint with paths to its hard dependencies.
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let ((entrypoint (string-append (assoc-ref outputs "out")
|
||||||
|
"/bin/.protonvpn-real")))
|
||||||
|
(wrap-program entrypoint
|
||||||
|
`("PATH" ":" prefix
|
||||||
|
,(map (lambda (name)
|
||||||
|
(let ((input (assoc-ref inputs name)))
|
||||||
|
(string-append input "/bin:"
|
||||||
|
input "/sbin")))
|
||||||
|
(list "dialog"
|
||||||
|
"iproute2"
|
||||||
|
"iptables"
|
||||||
|
"ncurses"
|
||||||
|
"openvpn"
|
||||||
|
"procps"
|
||||||
|
"which")))))
|
||||||
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-docopt" ,python-docopt)))
|
`(("python-docopt" ,python-docopt)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("python-jinja2" ,python-jinja2)
|
`(("dialog" ,dialog)
|
||||||
|
("iproute2" ,iproute)
|
||||||
|
("iptables" ,iptables)
|
||||||
|
("ncurses" ,ncurses)
|
||||||
|
("openvpn" ,openvpn)
|
||||||
|
("procps" ,procps)
|
||||||
|
("python-jinja2" ,python-jinja2)
|
||||||
("python-pythondialog" ,python-pythondialog)
|
("python-pythondialog" ,python-pythondialog)
|
||||||
("python-requests" ,python-requests)))
|
("python-requests" ,python-requests)
|
||||||
(propagated-inputs
|
("which" ,which)))
|
||||||
`(("openvpn" ,openvpn)
|
|
||||||
("dialog" ,dialog)))
|
|
||||||
(synopsis "Command-line client for ProtonVPN")
|
(synopsis "Command-line client for ProtonVPN")
|
||||||
(description
|
(description
|
||||||
"This is the official command-line interface for ProtonVPN, a secure
|
"This is the official command-line interface for ProtonVPN, a secure
|
||||||
|
|
Reference in a new issue