gnu: shadowsocks: Improve style.

* gnu/packages/networking.scm (shadowsocks): Run guix style.
[arguments]: Use g-expressions.

Change-Id: I947116bf1730aa42649d86af28522fe90af30378
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-07-30 09:24:26 +02:00 committed by Sharlatan Hellseher
parent 694acea793
commit 188ef6c71b
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3621,20 +3621,18 @@ asynchronous model using a modern C++ approach.")
(sha256 (sha256
(base32 "02mp5905nz02d7amb4zc77rcrkxmvy8mf5rci7mvy58g24lvbw25")) (base32 "02mp5905nz02d7amb4zc77rcrkxmvy8mf5rci7mvy58g24lvbw25"))
(file-name (git-file-name name version)))) (file-name (git-file-name name version))))
(inputs
(list 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) (build-system python-build-system)
(arguments
(list
#: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)"
(search-input-file inputs "lib/libssl.so")))))))))
(inputs (list openssl))
(home-page "https://github.com/shadowsocks/shadowsocks") (home-page "https://github.com/shadowsocks/shadowsocks")
(synopsis "Fast tunnel proxy that helps you bypass firewalls") (synopsis "Fast tunnel proxy that helps you bypass firewalls")
(description (description