gnu: protonvpn-cli: Do not try to wrap the wrapper.

* gnu/packages/vpn.scm (protonvpn-cli)[arguments]: Try to wrap the
original program, and not the wrapper, as wrap-program handles that
properly.
This commit is contained in:
Josselin Poiret 2022-02-08 19:05:40 +01:00 committed by Brice Waegeneire
parent 47eb897bd3
commit 9c8f68f479
No known key found for this signature in database
GPG key ID: A94903A166A18FAE

View file

@ -18,6 +18,7 @@
;;; Copyright © 2021 Domagoj Stolfa <ds815@gmx.com>
;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
;;; Copyright © 2021 jgart <jgart@dismail.de>
;;; Copyright © 2022 Josselin Poiret <josselin.poiret@protonmail.ch>
;;;
;;; This file is part of GNU Guix.
;;;
@ -753,7 +754,7 @@ (define-public protonvpn-cli
;; 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")))
"/bin/protonvpn")))
(wrap-program entrypoint
#:sh (search-input-file inputs "bin/bash")
`("PATH" ":" prefix