gnu: avogadro: Don't use unstable tarball.

* gnu/packages/chemistry.scm (avogadro)[source]: Use GIT-FETCH and
GIT-FILE-NAME.
This commit is contained in:
Tobias Geerinckx-Rice 2018-12-23 10:58:55 +01:00
parent f44eca9468
commit 631249ddc0
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 15 additions and 12 deletions

View File

@ -2,6 +2,7 @@
;;; Copyright © 2018 Konrad Hinsen <konrad.hinsen@fastmail.net> ;;; Copyright © 2018 Konrad Hinsen <konrad.hinsen@fastmail.net>
;;; Copyright © 2018 Kei Kebreau <kkebreau@posteo.net> ;;; Copyright © 2018 Kei Kebreau <kkebreau@posteo.net>
;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -23,6 +24,7 @@
#:use-module (guix utils) #:use-module (guix utils)
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix git-download)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (gnu packages algebra) #:use-module (gnu packages algebra)
#:use-module (gnu packages boost) #:use-module (gnu packages boost)
@ -44,18 +46,19 @@
(package (package
(name "avogadro") (name "avogadro")
(version "1.2.0") (version "1.2.0")
(source (origin (source
(method url-fetch) (origin
(uri (string-append "https://github.com/cryos/avogadro/archive/" (method git-fetch)
version ".tar.gz")) (uri (git-reference
(sha256 (url "https://github.com/cryos/avogadro.git")
(base32 (commit version)))
"02v4h6hi1m7ilv0apdf74a8l1cm6dxnxyqp0rdaidrp3i9pf6lv4")) (sha256
(file-name (string-append name "-" version ".tar.gz")) (base32 "0258py3lkba85qhs5ynancinyym61vlp0zaq9yrfs3hhnhpzv9n2"))
(patches (file-name (git-file-name name version))
(search-patches "avogadro-eigen3-update.patch" (patches
"avogadro-python-eigen-lib.patch" (search-patches "avogadro-eigen3-update.patch"
"avogadro-boost148.patch")))) "avogadro-python-eigen-lib.patch"
"avogadro-boost148.patch"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:tests? #f `(#:tests? #f