From 69b13cd4eaa88ad7fe1b2e6c5ceae0357eedfac2 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 16 May 2021 16:19:47 +0300 Subject: gnu: Add julia-zlib-jll. * gnu/packages/julia-xyz.scm (julia-zlib-jll): New variable. --- gnu/packages/julia-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index db3e3b846d..dd5ee91724 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2020, 2021 Nicolò Balzarotti ;;; Copyright © 2021 Simon Tournier +;;; Copyright © 2021 Efraim Flashner ;;; ;;; 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") -- cgit 1.4.1