gnu: Add julia-codeczlib.
* gnu/packages/julia-xyz.scm (julia-codeczlib-0.6.0): New variable.
This commit is contained in:
parent
d67407b3a7
commit
e7ea6b4b32
|
@ -21,6 +21,7 @@
|
||||||
#:use-module (guix git-download)
|
#:use-module (guix git-download)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
|
#:use-module (gnu packages compression)
|
||||||
#:use-module (gnu packages tls))
|
#:use-module (gnu packages tls))
|
||||||
|
|
||||||
(define-public julia-uriparser
|
(define-public julia-uriparser
|
||||||
|
@ -298,3 +299,45 @@ you expect,
|
||||||
@item extensible: you can define a new codec to transcode data
|
@item extensible: you can define a new codec to transcode data
|
||||||
@end enumerate")
|
@end enumerate")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public julia-codeczlib
|
||||||
|
(package
|
||||||
|
(name "julia-codeczlib")
|
||||||
|
(version "0.6.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/bicycle1885/CodecZlib.jl")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name "CodecZlib")
|
||||||
|
(sha256
|
||||||
|
(base32 "18j5lhcsgln4ng5ik0y1s194q1a8h4828wwp4ws5vqc9i2spn8mb"))))
|
||||||
|
(propagated-inputs `(("julia-transcodingstreams" ,julia-transcodingstreams)
|
||||||
|
("julia-binaryprovider" ,julia-binaryprovider)
|
||||||
|
("zlib" ,zlib)))
|
||||||
|
(arguments
|
||||||
|
`(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(delete 'reset-gzip-timestamps)
|
||||||
|
(add-before 'precompile 'build-deps
|
||||||
|
(lambda* (#:key outputs source inputs #:allow-other-keys)
|
||||||
|
(let ((f (open-file
|
||||||
|
(string-append
|
||||||
|
(assoc-ref outputs "out")
|
||||||
|
"/share/julia/packages/"
|
||||||
|
(string-append
|
||||||
|
(strip-store-file-name source) "/deps/deps.jl"))
|
||||||
|
"w")))
|
||||||
|
(display (string-append "const libz = \""
|
||||||
|
(assoc-ref inputs "zlib")
|
||||||
|
"/lib/libz.so\"\n") f)
|
||||||
|
(display "check_deps() = true\n" f)
|
||||||
|
(close-port f))
|
||||||
|
#t)))))
|
||||||
|
(build-system julia-build-system)
|
||||||
|
(home-page "https://github.com/bicycle1885/CodecZlib.jl")
|
||||||
|
(synopsis "@code{Zlib} codecs for @code{TranscodingStreams}")
|
||||||
|
(description "@code{CodecZlib} provides Zlib bindings for the
|
||||||
|
@code{TranscodingStreams} interface.")
|
||||||
|
(license license:expat)))
|
||||||
|
|
Loading…
Reference in New Issue