~ruther/guix-local

188ef6c71b17ced14fed9d0b7728ec8c65627207 — Nicolas Graves 1 year, 3 months ago 694acea
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>
1 files changed, 11 insertions(+), 13 deletions(-)

M gnu/packages/networking.scm
M gnu/packages/networking.scm => gnu/packages/networking.scm +11 -13
@@ 3621,20 3621,18 @@ asynchronous model using a modern C++ approach.")
       (sha256
        (base32 "02mp5905nz02d7amb4zc77rcrkxmvy8mf5rci7mvy58g24lvbw25"))
       (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)
    (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")
    (synopsis "Fast tunnel proxy that helps you bypass firewalls")
    (description