guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 14/17] gnu: Add perl-crypt-openssl-bignum.


From: Leo Famulari
Subject: Re: [PATCH v5 14/17] gnu: Add perl-crypt-openssl-bignum.
Date: Mon, 8 Aug 2016 15:54:19 -0400
User-agent: Mutt/1.6.0 (2016-04-01)

On Thu, Jul 28, 2016 at 11:38:30PM +0200, Danny Milosavljevic wrote:
> 
> gnu: Add perl-crypt-openssl-bignum.
> 
> * gnu/packages/tls.scm (perl-crypt-openssl-bignum, 
> perl-crypt-openssl-arguments): New variables.
> ---
>  gnu/packages/tls.scm | 36 ++++++++++++++++++++++++++++++++++++
>  1 file changed, 36 insertions(+)
> 

> diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
> index d992c51..fba130b 100644
> --- a/gnu/packages/tls.scm
> +++ b/gnu/packages/tls.scm
> @@ -556,3 +556,39 @@ servers or clients for more complicated applications.")
>      "RSA encoding and decoding, using the openSSL libraries")
>    (description "Crypt::OpenSSL::RSA does RSA encoding and decoding (using 
> the OpenSSL libraries).")
>    (license (package-license perl))))
> +
> +(define perl-crypt-arguments
> +   `(#:phases (modify-phases %standard-phases
> +      (add-before 'configure 'patch-Makefile.PL
> +        (lambda* (#:key inputs #:allow-other-keys)
> +          (substitute* "Makefile.PL"
> +            (("'LIBS'.*=>.*") (string-append "'LIBS' => ['-L"
> +                                             (assoc-ref inputs "openssl")
> +                                             "/lib -lcrypto'],")))
> +          #t)))))

I see this variable is also used in perl-crypt-openssl-random. I don't
have a very strong sense of Scheme style yet, but so far I've seen
things like this duplicated between package definitions. I think it's
better to reduce the proliferation of non-package variables in
gnu/packages...  what do you think?

I can amend the patches if you agree.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]