summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2018-12-04 17:06:28 +0100
committerMarius Bakke <mbakke@fastmail.com>2018-12-04 20:05:20 +0100
commitb38cfa1dfd05b66e223da158bff37199dd489059 (patch)
treeca665160e3832f3c0ae19e1dcf6bedb600a9b78d
parentc492e85b526d06aed90b8f3a7b4b99f602072c96 (diff)
downloadguix-b38cfa1dfd05b66e223da158bff37199dd489059.tar.gz
gnu: lz4: Download sources from git.
* gnu/packages/compression.scm (lz4)[source]: Change to GIT-FETCH.
-rw-r--r--gnu/packages/compression.scm10
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 32b92a976c..c87ccda304 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -796,13 +796,13 @@ writing of compressed data created with the zlib and bzip2 libraries.")
     (version "1.8.1.2")
     (source
      (origin
-       (method url-fetch)
-       (uri (string-append "https://github.com/lz4/lz4/archive/"
-                           "v" version ".tar.gz"))
+       (method git-fetch)
+       (uri (git-reference (url "https://github.com/lz4/lz4")
+                           (commit (string-append "v" version))))
        (sha256
         (base32
-         "1y93h6dyi3026gvpzdv310ldcylnnhwf32n75mdjf8x9fvkskwqj"))
-       (file-name (string-append name "-" version ".tar.gz"))))
+         "1jggv4lvfav53advnj0pwqgxzn868lrj8dc9zp73iwvqlj82mhmx"))
+       (file-name (git-file-name name version))))
     (build-system gnu-build-system)
     (native-inputs `(("valgrind" ,valgrind)))   ; for tests
     (arguments