Archived
1
0
Fork 0

gnu: stunnel: Use G-expressions.

* gnu/packages/web.scm (stunnel)[arguments]:
Rewrite as G-expressions.
This commit is contained in:
Tobias Geerinckx-Rice 2022-01-09 03:50:09 +01:00
parent 4a98f416d6
commit 53846e252b
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -5810,10 +5810,11 @@ tools like SSH (Secure Shell) to reach the outside world.")
("python" ,python))) ("python" ,python)))
(inputs (list openssl)) (inputs (list openssl))
(arguments (arguments
`(#:configure-flags (list #:configure-flags
(list (string-append "--with-ssl=" (assoc-ref %build-inputs "openssl"))) #~(list (string-append "--with-ssl="
#$(this-package-input "openssl")))
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'patch-output-directories (add-after 'unpack 'patch-output-directories
(lambda _ (lambda _
;; Some (not all) Makefiles have a hard-coded incorrect docdir. ;; Some (not all) Makefiles have a hard-coded incorrect docdir.
@ -5821,11 +5822,11 @@ tools like SSH (Secure Shell) to reach the outside world.")
"doc/Makefile.in" "doc/Makefile.in"
"tools/Makefile.in") "tools/Makefile.in")
(("/doc/stunnel") (("/doc/stunnel")
(string-append "/doc/" ,name "-" ,version))))) (string-append "/doc/" #$name "-" #$version)))))
(add-after 'install 'prune-documentation (add-after 'install 'prune-documentation
(lambda* (#:key outputs #:allow-other-keys) (lambda _
(let* ((out (assoc-ref outputs "out")) (let* ((doc (string-append #$output "/share/doc/"
(doc (string-append out "/share/doc/" ,name "-" ,version))) #$name "-" #$version)))
(for-each delete-file (find-files doc "^INSTALL")))))))) (for-each delete-file (find-files doc "^INSTALL"))))))))
(home-page "https://www.stunnel.org") (home-page "https://www.stunnel.org")
(synopsis "TLS proxy for clients or servers") (synopsis "TLS proxy for clients or servers")