From 819ead3592e70bbb9c4451462ce7806368e0d41a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 14 Sep 2020 21:32:10 +0300 Subject: gnu: java-hdrhistogram: Don't use unstable tarball. * gnu/packages/java.scm (java-hdrhistogram)[source]: Download using git-fetch. [arguments]: Add phase to make source writable. --- gnu/packages/java.scm | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 3590ea9c1e..1ef2ab3584 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -9538,18 +9538,24 @@ make data-binding work.") (name "java-hdrhistogram") (version "2.1.9") (source (origin - (method url-fetch) - (uri (string-append "https://github.com/HdrHistogram/HdrHistogram/" - "archive/HdrHistogram-" version ".tar.gz")) + (method git-fetch) + (uri (git-reference + (url "https://github.com/HdrHistogram/HdrHistogram") + (commit (string-append "HdrHistogram-" version)))) + (file-name (git-file-name name version)) (sha256 (base32 - "1sicbmc3sr42nw93qbkb26q9rn33ag33k6k77phjc3j5h5gjffqv")))) + "1cw8aa1vk258k42xs6wpy72m4gbai540jq032qsa7c5586iawx2d")))) (build-system ant-build-system) (arguments `(#:jar-name "java-hdrhistogram.jar" #:source-dir "src/main/java" #:phases (modify-phases %standard-phases + (add-after 'unpack 'make-files-writable + (lambda _ + (for-each make-file-writable (find-files ".")) + #t)) (add-before 'configure 'set-version (lambda _ (let* ((version-java "src/main/java/org/HdrHistogram/Version.java") -- cgit 1.4.1