gnu: javacc: Don't use unstable tarball.

* gnu/packages/java.scm (javacc)[source]: Use GIT-FETCH and
GIT-FILE-NAME.
This commit is contained in:
Tobias Geerinckx-Rice 2019-02-19 15:56:20 +01:00
parent 6b66e47052
commit ebf8048d14
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 14 additions and 13 deletions

View File

@ -2268,19 +2268,20 @@ debugging, etc.")
(package (package
(inherit javacc-4) (inherit javacc-4)
(version "7.0.4") (version "7.0.4")
(source (origin (source
(method url-fetch) (origin
(uri (string-append "https://github.com/javacc/javacc/" (method git-fetch)
"archive/" version ".tar.gz")) (uri (git-reference
(file-name (string-append "javacc-" version ".tar.gz")) (url "https://github.com/javacc/javacc.git")
(sha256 (commit version)))
(base32 (file-name (git-file-name "javacc" version))
"0z7p9irwarc3avlcdyv9bd3zz57m1aawj8dr95wgxzg5z8fki8m6")) (sha256
(modules '((guix build utils))) (base32 "18kkak3gda93gr25jrgy6q00g0jr8i24ri2wk4kybz1v234fxx9i"))
;; Delete bundled jars. (modules '((guix build utils)))
(snippet '(begin (for-each delete-file-recursively ;; Delete bundled jars.
'("bootstrap" "lib")) (snippet '(begin (for-each delete-file-recursively
#t)))) '("bootstrap" "lib"))
#t))))
(arguments (arguments
`(#:make-flags ; bootstrap from javacc-4 `(#:make-flags ; bootstrap from javacc-4
(list (string-append "-Dbootstrap-jar=" (list (string-append "-Dbootstrap-jar="