diff options
-rw-r--r-- | gnu/packages/vpn.scm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm index 4cb871feb2..0f7300ff51 100644 --- a/gnu/packages/vpn.scm +++ b/gnu/packages/vpn.scm @@ -1005,11 +1005,13 @@ private network between hosts on the internet.") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-FHS-file-names - (lambda _ + (lambda* (#:key inputs #:allow-other-keys) (substitute* "sshuttle/client.py" - (("/usr/bin/env") (which "env"))) + (("(/usr)?(/bin/env)" _ _ command) + (search-input-file inputs command))) (substitute* "sshuttle/ssh.py" - (("/bin/sh") "sh")))) + (("/bin/sh" command) + (search-input-file inputs command))))) (add-after 'install 'install-documentation (lambda _ (with-directory-excursion "docs" |