me
/
guix
Archived
1
0
Fork 0

gnu: argon2: Update to 20190702.

* gnu/packages/password-utils.scm (argon2): Update to 20190702.
[arguments]: Adjust make-flags. Remove 'patch-Makefile phase.
master
Efraim Flashner 2020-01-22 13:04:47 +02:00
parent c600cf2a72
commit fe109349d0
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 8 additions and 21 deletions

View File

@ -703,7 +703,7 @@ using password-store through rofi interface:
(define-public argon2 (define-public argon2
(package (package
(name "argon2") (name "argon2")
(version "20171227") (version "20190702")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -713,31 +713,18 @@ using password-store through rofi interface:
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1rzayv4ydxwb5fqyr1y8nz0wsb9r45mwl1wrq8hmikjrlqhhjn6f")))) "01rwanr4wmr9vm6c712x411wig543q195z2icn388z892a93lc7p"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:test-target "test" `(#:test-target "test"
#:make-flags '("CC=gcc" #:make-flags (list "CC=gcc"
"OPTTEST=1") ;disable CPU optimization (string-append "PREFIX=" (assoc-ref %outputs "out"))
"LIBRARY_REL=lib"
(string-append "ARGON2_VERSION=" ,version)
"OPTTEST=1") ; disable CPU optimization
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'patch-Makefile (delete 'configure)))) ; No configure script.
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(substitute* "Makefile"
(("PREFIX = /usr") (string-append "PREFIX = " out)))
(substitute* "libargon2.pc"
(("prefix=/usr") (string-append "prefix=" out))
(("@HOST_MULTIARCH@") "")
(("@UPSTREAM_VER@") ,version))
#t)))
(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