gnu: erlang: Don't use unstable tarball.

* gnu/packages/erlang.scm (erlang)[source]: Use GIT-FETCH and
GIT-FILE-NAME.
This commit is contained in:
Tobias Geerinckx-Rice 2018-08-16 04:31:44 +02:00
parent eb5a664344
commit ed67288262
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -24,6 +24,7 @@ (define-module (gnu packages erlang)
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix utils) #:use-module (guix utils)
#:use-module (gnu packages) #:use-module (gnu packages)
@ -40,16 +41,17 @@ (define-public erlang
(name "erlang") (name "erlang")
(version "21.0") (version "21.0")
(source (origin (source (origin
(method url-fetch) (method git-fetch)
;; The tarball from http://erlang.org/download contains many ;; The tarball from http://erlang.org/download contains many
;; pre-compiled files, so we use this snapshot of the source ;; pre-compiled files, so we use this snapshot of the source
;; repository. ;; repository.
(uri (string-append "https://github.com/erlang/otp/archive/OTP-" (uri (git-reference
version ".tar.gz")) (url "https://github.com/erlang/otp.git")
(file-name (string-append name "-" version ".tar.gz")) (commit (string-append "OTP-" version))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0gv43lra4870xns8b0yjzbq78afzvz9gk6y3q3fa4y4sqcrqwbas")) "195xq8bmmk0m6f5nkss2gkksyyph3z4wggn8abyicykpc8sdw83d"))
(patches (search-patches "erlang-man-path.patch")))) (patches (search-patches "erlang-man-path.patch"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (native-inputs