gnu: opendht: Fetch sources from git.

* gnu/packages/crypto.scm (opendht)[source]: Fetch from git.
This commit is contained in:
Ricardo Wurmus 2018-11-11 10:20:36 +01:00
parent a49b5322c5
commit 974056c05e
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 David Thompson <davet@gnu.org> ;;; Copyright © 2014 David Thompson <davet@gnu.org>
;;; Copyright © 2015, 2017 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2015, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2016, 2017, 2018 Leo Famulari <leo@famulari.name> ;;; Copyright © 2016, 2017, 2018 Leo Famulari <leo@famulari.name>
;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox> ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox>
;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
@ -164,34 +164,31 @@ (define-public signify
"See base64.c in the distribution for "See base64.c in the distribution for
the license from IBM."))))) the license from IBM.")))))
(define-public opendht (define-public opendht
(package (package
(name "opendht") (name "opendht")
(version "0.6.1") (version "0.6.1")
(source (source (origin
(origin (method git-fetch)
(method url-fetch) (uri (git-reference
(uri (url "https://github.com/savoirfairelinux/opendht.git")
(string-append (commit version)))
"https://github.com/savoirfairelinux/" name (file-name (git-file-name name version))
"/archive/" version ".tar.gz")) (modules '((guix build utils)))
(file-name (string-append name "-" version ".tar.gz")) (snippet
(modules '((guix build utils))) '(begin
(snippet (delete-file-recursively "src/argon2")
'(begin (substitute* "src/Makefile.am"
(delete-file-recursively "src/argon2") (("./argon2/libargon2.la") "")
(substitute* "src/Makefile.am" (("SUBDIRS = argon2") ""))
(("./argon2/libargon2.la") "") (substitute* "src/crypto.cpp"
(("SUBDIRS = argon2") "")) (("argon2/argon2.h") "argon2.h"))
(substitute* "src/crypto.cpp" (substitute* "configure.ac"
(("argon2/argon2.h") "argon2.h")) (("src/argon2/Makefile") ""))
(substitute* "configure.ac" #t))
(("src/argon2/Makefile") "")) (sha256
#t)) (base32
(sha256 "1akk613f18rc8kqs0cxdm34iq7wwc9kffhgp5rng09arwlw8gw3w"))))
(base32
"09yvkmbqbym3b5md4n96qc1s9sf2n8ji404hagih45rmsj49599x"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(inputs (inputs
`(("gnutls" ,gnutls) `(("gnutls" ,gnutls)