gnu: json-modern-cxx: Fetch from git.
* gnu/packages/cpp.scm (json-modern-cxx)[source]: Use GIT-FETCH. [source](snippet): End on #t.
This commit is contained in:
parent
0a3849f610
commit
8f22bf9e6d
|
@ -203,15 +203,16 @@ as ordering relation.")
|
||||||
(package
|
(package
|
||||||
(name "json-modern-cxx")
|
(name "json-modern-cxx")
|
||||||
(version "3.1.2")
|
(version "3.1.2")
|
||||||
|
(home-page "https://github.com/nlohmann/json")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append
|
(uri (git-reference (url home-page)
|
||||||
"https://github.com/nlohmann/json/archive/v" version ".tar.gz"))
|
(commit (string-append "v" version))))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0m5fhdpx2qll933db2nsi30nns3cifavzvijzz6mxhdkpmngmzz8"))
|
"1mpr781fb2dfbyscrr7nil75lkxsazg4wkm749168lcf2ksrrbfi"))
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(file-name (git-file-name name version))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin
|
'(begin
|
||||||
|
@ -227,13 +228,13 @@ as ordering relation.")
|
||||||
(substitute* files
|
(substitute* files
|
||||||
(("#include ?\"(fifo_map.hpp)\"" all fifo-map-hpp)
|
(("#include ?\"(fifo_map.hpp)\"" all fifo-map-hpp)
|
||||||
(string-append
|
(string-append
|
||||||
"#include <fifo_map/" fifo-map-hpp ">")))))))))
|
"#include <fifo_map/" fifo-map-hpp ">")))))
|
||||||
|
#t))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("amalgamate" ,amalgamate)))
|
`(("amalgamate" ,amalgamate)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("catch2" ,catch-framework2)
|
`(("catch2" ,catch-framework2)
|
||||||
("fifo-map" ,fifo-map)))
|
("fifo-map" ,fifo-map)))
|
||||||
(home-page "https://github.com/nlohmann/json")
|
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(synopsis "JSON parser and printer library for C++")
|
(synopsis "JSON parser and printer library for C++")
|
||||||
(description "JSON for Modern C++ is a C++ JSON library that provides
|
(description "JSON for Modern C++ is a C++ JSON library that provides
|
||||||
|
|
Loading…
Reference in New Issue