gnu: simh: Don't use unstable tarball.

* gnu/packages/simh.scm (simh)[source]: Use GIT-FETCH and
GIT-FILE-NAME.
This commit is contained in:
Tobias Geerinckx-Rice 2019-02-17 19:48:28 +01:00
parent b4d5a789b6
commit 4c23e261d1
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 11 additions and 8 deletions

View File

@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.com> ;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.com>
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -20,6 +21,7 @@
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (gnu packages admin)) #:use-module (gnu packages admin))
@ -27,14 +29,15 @@
(package (package
(name "simh") (name "simh")
(version "3.9-0") (version "3.9-0")
(source (origin (source
(method url-fetch) (origin
(uri (string-append "https://github.com/" name "/" name (method git-fetch)
"/archive/v" version ".tar.gz")) (uri (git-reference
(url "https://github.com/simh/simh.git")
(commit (string-append "v" version))))
(sha256 (sha256
(base32 (base32 "1jiq6shj6a9xvzacvmyhxxd6xdyica8q4006qqjh5mh96rxrp15c"))
"1ymfy8j15d1aa4ai5xv9w7mk6lk4zx3zhfv0mfn66pdhrc8jlh0g")) (file-name (git-file-name name version))))
(file-name (string-append name "-" version ".tar.gz"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(inputs (inputs
`(("libpcap" ,libpcap))) `(("libpcap" ,libpcap)))