summary refs log tree commit diff
path: root/gnu/packages/ocaml.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2020-01-28 10:51:40 +0200
committerEfraim Flashner <efraim@flashner.co.il>2020-01-28 11:25:17 +0200
commit4d85a7dd26c06b22e7fcafc0855a6a84df3a38dd (patch)
treeb535dc87092b09c7e830f258a88b8b52d79ebdf7 /gnu/packages/ocaml.scm
parent8684575a88fc19d6b421af46d19fa64e1bf613fa (diff)
downloadguix-4d85a7dd26c06b22e7fcafc0855a6a84df3a38dd.tar.gz
gnu: ocaml-ocplib-endian: Don't use unstable tarball.
* gnu/packages/ocaml.scm (ocaml-ocplib-endian)[source]: Download using
git-fetch.
Diffstat (limited to 'gnu/packages/ocaml.scm')
-rw-r--r--gnu/packages/ocaml.scm11
1 files changed, 6 insertions, 5 deletions
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index a8fdd00d8e..65d89bca26 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -2659,13 +2659,14 @@ standard iterator type starting from 4.07.")
     (name "ocaml-ocplib-endian")
     (version "1.0")
     (source (origin
-              (method url-fetch)
-              (uri (string-append "https://github.com/OCamlPro/ocplib-endian/"
-                                  "archive/" version ".tar.gz"))
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/OCamlPro/ocplib-endian/")
+                     (commit version)))
               (sha256
                (base32
-                "0hwj09rnzjs0m0kazz5h2mgs6p95j0zlga8cda5srnzqmzhniwkn"))
-              (file-name (string-append name "-" version ".tar.gz"))))
+                "0s1ld3kavz892b8awyxyg1mr98h2g61gy9ci5v6yb49bsii6wicw"))
+              (file-name (git-file-name name version))))
     (build-system ocaml-build-system)
     (native-inputs
      `(("cppo" ,ocaml-cppo)