aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/java.scm11
1 files changed, 6 insertions, 5 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 1a36268da7..e8cab46a7c 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -4566,13 +4566,14 @@ The jMock library
(name "java-jmock")
(version "2.8.2")
(source (origin
- (method url-fetch)
- (uri (string-append "https://github.com/jmock-developers/"
- "jmock-library/archive/" version ".tar.gz"))
- (file-name (string-append name "-" version ".tar.gz"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jmock-developers/jmock-library")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
(base32
- "18650a9g8xffcsdb6w91pbswa7f40fp2sh6s3nclkclz5dbzq8f0"))))
+ "12b7l22g3nrjvf2dzcw3z03fpd2chrgp0d8xkvn8w55rwb57pax6"))))
(inputs
`(("java-hamcrest-all" ,java-hamcrest-all)
("java-asm" ,java-asm)