gnu: libmpack: Don't use unstable tarball.
* gnu/packages/serialization.scm (libmpack)[source]: Use GIT-FETCH and GIT-FILE-NAME. (lua-libmpack)[arguments]: Adjust ‘unpack-mpack-sources’ phase.
This commit is contained in:
parent
32faec65aa
commit
d7885bbf07
|
@ -8,7 +8,7 @@
|
||||||
;;; Copyright © 2017 Gregor Giesen <giesen@zaehlwerk.net>
|
;;; Copyright © 2017 Gregor Giesen <giesen@zaehlwerk.net>
|
||||||
;;; Copyright © 2017 Frederick M. Muriithi <fredmanglis@gmail.com>
|
;;; Copyright © 2017 Frederick M. Muriithi <fredmanglis@gmail.com>
|
||||||
;;; Copyright © 2017 ng0 <ng0@n0.is>
|
;;; Copyright © 2017 ng0 <ng0@n0.is>
|
||||||
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
|
;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
|
@ -141,14 +141,15 @@ serialization.")
|
||||||
(package
|
(package
|
||||||
(name "libmpack")
|
(name "libmpack")
|
||||||
(version "1.0.5")
|
(version "1.0.5")
|
||||||
(source (origin
|
(source
|
||||||
(method url-fetch)
|
(origin
|
||||||
(uri (string-append "https://github.com/tarruda/libmpack/"
|
(method git-fetch)
|
||||||
"archive/" version ".tar.gz"))
|
(uri (git-reference
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(url "https://github.com/tarruda/libmpack.git")
|
||||||
(sha256
|
(commit version)))
|
||||||
(base32
|
(file-name (git-file-name name version))
|
||||||
"0ml922gv8y99lbldqb9ykpjndla0hlprdjyl79yskkhwv2ai7sac"))))
|
(sha256
|
||||||
|
(base32 "0rai5djdkjz7bsn025k5489in7r1amagw1pib0z4qns6b52kiar2"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:test-target "test"
|
`(#:test-target "test"
|
||||||
|
@ -205,10 +206,9 @@ that implements both the msgpack and msgpack-rpc specifications.")
|
||||||
;; prerequisites are added to the inputs of the gcc invocation.
|
;; prerequisites are added to the inputs of the gcc invocation.
|
||||||
(substitute* "Makefile"
|
(substitute* "Makefile"
|
||||||
(("\\$\\(MPACK\\): mpack-src") "$(MPACK): "))
|
(("\\$\\(MPACK\\): mpack-src") "$(MPACK): "))
|
||||||
(mkdir-p "mpack-src")
|
(copy-recursively (assoc-ref inputs "libmpack")
|
||||||
(zero? (system* "tar" "-C" "mpack-src"
|
"mpack-src")
|
||||||
"--strip-components=1"
|
#t)))))
|
||||||
"-xvf" (assoc-ref inputs "libmpack"))))))))
|
|
||||||
(inputs
|
(inputs
|
||||||
`(("lua" ,lua)))
|
`(("lua" ,lua)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
|
Loading…
Reference in New Issue