summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2019-07-07 17:26:38 +0200
committerMarius Bakke <mbakke@fastmail.com>2019-07-07 18:38:19 +0200
commitd0a52e65b53d05790b307a2b99172fa38dcd7619 (patch)
tree881083d02067405196822ee40796b8030a423450 /gnu
parentee3a4d367880dd826fc74a9e4080163f92e1512a (diff)
downloadguix-d0a52e65b53d05790b307a2b99172fa38dcd7619.tar.gz
gnu: zziplib: Don't use unstable tarball.
* gnu/packages/compression.scm (zziplib)[source]: Change to GIT-FETCH.
[argumnents]: New field.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/compression.scm22
1 files changed, 15 insertions, 7 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index ddc43176d9..1ca88fe78c 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -1573,14 +1573,22 @@ recreates the stored directory structure by default.")
     (name "zziplib")
     (version "0.13.69")
     (home-page "https://github.com/gdraheim/zziplib")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (string-append home-page "/archive/v" version ".tar.gz"))
-       (sha256
-        (base32
-         "0i052a7shww0fzsxrdp3rd7g4mbzx7324a8ysbc0br7frpblcql4"))))
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference (url home-page)
+                                  (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0fbk9k7ryas2wh2ykwkvm1pbi40i88rfvc3dydh9xyd7w2jcki92"))))
     (build-system gnu-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (add-before 'check 'make-files-writable
+                    (lambda _
+                      (for-each make-file-writable
+                                (find-files "test" #:directories? #t))
+                      #t)))))
     (inputs
      `(("zlib" ,zlib)))
     (native-inputs `(("perl" ,perl)     ; for the documentation