gnu: scrypt: Install licence file with documentation.

* gnu/packages/crypto.scm (scrypt)[arguments]: Add a
#:license-file-regexp and install the documentation to the same
standard location.
This commit is contained in:
Tobias Geerinckx-Rice 2020-08-30 04:03:47 +02:00
parent 5a9f2ae19b
commit a0484d9ff7
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -529,7 +529,8 @@ (define-public scrypt
"0xy5yhrwwv13skv9im9vm76rybh9f29j2dh4hlh2x01gvbkza8a6"))))
(build-system gnu-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
`(#:license-file-regexp "COPYRIGHT"
#:phases (modify-phases %standard-phases
(add-after 'unpack 'patch-command-invocations
(lambda _
(substitute* "Makefile.in"
@ -538,8 +539,8 @@ (define-public scrypt
(add-after 'install 'install-docs
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref %outputs "out"))
(misc (string-append out "/share/doc/scrypt")))
(install-file "FORMAT" misc)
(doc (string-append out "/share/doc/" ,name "-" ,version)))
(install-file "FORMAT" doc)
#t))))))
(inputs
`(("openssl" ,openssl)))