me
/
guix
Archived
1
0
Fork 0

gnu: emacs-tuareg: Don't use unstable tarball.

* gnu/packages/ocaml.scm (emacs-tuareg)[source]: Use GIT-FETCH and
GIT-FILE-NAME.
[arguments]: Add ‘make-git-checkout-writable’ phase.
master
Tobias Geerinckx-Rice 2019-04-09 00:10:06 +02:00
parent 6aade73967
commit f541d86de6
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 13 additions and 8 deletions

View File

@ -779,20 +779,25 @@ the OCaml core distribution.")
(package (package
(name "emacs-tuareg") (name "emacs-tuareg")
(version "2.2.0") (version "2.2.0")
(source (origin (source
(method url-fetch) (origin
(uri (string-append "https://github.com/ocaml/tuareg/archive/" (method git-fetch)
version ".tar.gz")) (uri (git-reference
(file-name (string-append name "-" version ".tar.gz")) (url "https://github.com/ocaml/tuareg.git")
(sha256 (commit version)))
(base32 (file-name (git-file-name name version))
"1ynpfc170f9jqx49biji9npfkvfpflbm29xf24wc7fnxxayr49ig")))) (sha256
(base32 "06zxnn85fk5087iq0zxc5l5n9fz8r0367wylmynbfhc9711vccy6"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs `(("emacs" ,emacs-minimal) (native-inputs `(("emacs" ,emacs-minimal)
("opam" ,opam))) ("opam" ,opam)))
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'make-git-checkout-writable
(lambda _
(for-each make-file-writable (find-files "."))
#t))
(delete 'configure) (delete 'configure)
(add-before 'install 'fix-install-path (add-before 'install 'fix-install-path
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)