me
/
guix
Archived
1
0
Fork 0

gnu: shadowsocks: Build against openssl.

This patch allows shadowsocks to be used without supplying libopenssl in its
configuration.  See also https://unix.stackexchange.com/questions/623324/.

* gnu/packages/networking.scm (shadowsocks)[inputs]: Add openssl.
[#:phases]: Add patch-crypto-paths.

Signed-off-by: Marius Bakke <marius@gnu.org>
master
Leo Prikler 2020-12-07 21:28:18 +01:00 committed by Marius Bakke
parent adf0edadef
commit 403dda2e66
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 13 additions and 0 deletions

View File

@ -3024,6 +3024,19 @@ asynchronous model using a modern C++ approach.")
(base32
"1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j"))
(file-name (git-file-name name version))))
(inputs
`(("openssl" ,openssl)))
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-crypto-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "shadowsocks/shell.py"
(("config\\.get\\('libopenssl', None\\)")
(format #f "config.get('libopenssl', ~s)"
(string-append
(assoc-ref inputs "openssl")
"/lib/libssl.so")))))))))
(build-system python-build-system)
(synopsis "Fast tunnel proxy that helps you bypass firewalls")
(description