gnu: yaml-cpp: Don't use unstable tarball.
authorTobias Geerinckx-Rice <me@tobias.gr>
Sun, 3 Nov 2019 17:22:48 +0000 (18:22 +0100)
committerTobias Geerinckx-Rice <me@tobias.gr>
Sun, 3 Nov 2019 19:09:29 +0000 (20:09 +0100)
* gnu/packages/serialization.scm (yaml-cpp)[source]: Use GIT-FETCH and
GIT-FILE-NAME.

gnu/packages/serialization.scm

index 48dcf8d..2bd1872 100644 (file)
@@ -261,14 +261,15 @@ that implements both the msgpack and msgpack-rpc specifications.")
   (package
     (name "yaml-cpp")
     (version "0.6.3")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append
-                    "https://github.com/jbeder/yaml-cpp/archive/"
-                    "yaml-cpp-" version ".tar.gz"))
-              (sha256
-               (base32
-                "1vgi193c761xaalq7r62ahiyvg7m32ab4z104k1s12kinf81pskp"))))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/jbeder/yaml-cpp.git")
+             (commit (string-append "yaml-cpp-" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0ykkxzxcwwiv8l8r697gyqh1nl582krpvi7m7l6b40ijnk4pw30s"))))
     (build-system cmake-build-system)
     (arguments
      '(#:configure-flags '("-DYAML_BUILD_SHARED_LIBS=ON")))