gnu: argon2: Install pkgconfig file.
* gnu/packages/password-utils.scm (argon2)[arguments]: Patch libargon2.pc. Add phase to install it. Signed-off-by: Clément Lassieur <clement@lassieur.org>
This commit is contained in:
parent
5f9a9945b5
commit
037d185111
|
@ -20,6 +20,7 @@
|
||||||
;;; Copyright © 2018 Thomas Sigurdsen <tonton@riseup.net>
|
;;; Copyright © 2018 Thomas Sigurdsen <tonton@riseup.net>
|
||||||
;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
|
;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
|
||||||
;;; Copyright © 2018 Pierre Neidhardt <ambrevar@gmail.com>
|
;;; Copyright © 2018 Pierre Neidhardt <ambrevar@gmail.com>
|
||||||
|
;;; Copyright © 2018 Amirouche Boubekki <amirouche@hypermove.net>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -461,8 +462,18 @@ through the pass command.")
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(substitute* "Makefile"
|
(substitute* "Makefile"
|
||||||
(("PREFIX = /usr") (string-append "PREFIX = " out)))
|
(("PREFIX = /usr") (string-append "PREFIX = " out)))
|
||||||
|
(substitute* "libargon2.pc"
|
||||||
|
(("prefix=/usr") (string-append "prefix=" out))
|
||||||
|
(("@HOST_MULTIARCH@") "")
|
||||||
|
(("@UPSTREAM_VER@") ,version))
|
||||||
#t)))
|
#t)))
|
||||||
(delete 'configure))))
|
(delete 'configure)
|
||||||
|
(add-after 'install 'install-argon2.pc
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
(install-file "libargon2.pc"
|
||||||
|
(string-append out "/lib/pkgconfig"))
|
||||||
|
#t))))))
|
||||||
(home-page "https://www.argon2.com/")
|
(home-page "https://www.argon2.com/")
|
||||||
(synopsis "Password hashing library")
|
(synopsis "Password hashing library")
|
||||||
(description "Argon2 provides a key derivation function that was declared
|
(description "Argon2 provides a key derivation function that was declared
|
||||||
|
|
Loading…
Reference in New Issue