mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-11 23:50:33 +02:00
gnu: Add julia-zlib-jll.
* gnu/packages/julia-xyz.scm (julia-zlib-jll): New variable.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2020, 2021 Nicolò Balzarotti <nicolo@nixo.xyz>
|
||||
;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
|
||||
;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
@@ -22,6 +23,7 @@
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (guix build-system julia)
|
||||
#:use-module (gnu packages compression)
|
||||
#:use-module (gnu packages gcc)
|
||||
#:use-module (gnu packages maths)
|
||||
#:use-module (gnu packages tls)
|
||||
@@ -1286,6 +1288,45 @@ working with @acronym{URIs,Uniform Resource Identifiers}, as defined in RFC
|
||||
system.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public julia-zlib-jll
|
||||
(package
|
||||
(name "julia-zlib-jll")
|
||||
(version "1.2.12+1")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/JuliaBinaryWrappers/Zlib_jll.jl")
|
||||
(commit (string-append "Zlib-v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"05ih0haqapkzr40swvq63cafnqlc4yp6yfa1wvdyq8v3n4kxhfqa"))))
|
||||
(build-system julia-build-system)
|
||||
(arguments
|
||||
'(#:tests? #f ; no runtests
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'override-binary-path
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(map
|
||||
(lambda (wrapper)
|
||||
(substitute* wrapper
|
||||
(("generate_wrapper_header.*")
|
||||
(string-append
|
||||
"generate_wrapper_header(\"Zlib\", \""
|
||||
(assoc-ref inputs "zlib") "\")\n"))))
|
||||
;; There's a Julia file for each platform, override them all
|
||||
(find-files "src/wrappers/" "\\.jl$")))))))
|
||||
(inputs
|
||||
`(("zlib" ,zlib)))
|
||||
(propagated-inputs
|
||||
`(("julia-jllwrappers" ,julia-jllwrappers)))
|
||||
(home-page "https://github.com/JuliaBinaryWrappers/Zlib_jll.jl")
|
||||
(synopsis "Zlib library wrappers")
|
||||
(description "This package provides a wrapper for Zlib.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public julia-zygoterules
|
||||
(package
|
||||
(name "julia-zygoterules")
|
||||
|
||||
Reference in New Issue
Block a user