diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2021-05-20 16:15:37 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2021-05-20 17:12:24 +0300 |
commit | 39dfc10bde8cc3c396e7ea459c9846638d78c440 (patch) | |
tree | 78d20a367e59bfba10957673277dc4b71637c9cb | |
parent | 2b425cf35294b57772809aa27880b6d71e60f42e (diff) | |
download | guix-39dfc10bde8cc3c396e7ea459c9846638d78c440.tar.gz |
gnu: Add julia-jpegturbo-jll.
* gnu/packages/julia-xyz.scm (julia-jpegturbo-jll): New variable.
-rw-r--r-- | gnu/packages/julia-xyz.scm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index 9d1c5369bc..a73abd2a56 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -25,6 +25,7 @@ #:use-module (guix build-system julia) #:use-module (gnu packages compression) #:use-module (gnu packages gcc) + #:use-module (gnu packages image) #:use-module (gnu packages maths) #:use-module (gnu packages tls) #:use-module (gnu packages web)) @@ -902,6 +903,43 @@ to generate themselves. It is not intended to be used by users, but rather is used in autogenerated packages via @code{BinaryBuilder.jl}.") (license license:expat))) +(define-public julia-jpegturbo-jll + (package + (name "julia-jpegturbo-jll") + (version "2.0.1+2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/JuliaBinaryWrappers/JpegTurbo_jll.jl") + (commit (string-append "JpegTurbo-v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1xp1x0hrj337bgwwffwpyq7xg031j2a38fim29lixqa0a0y80x6y")))) + (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 + (("artifact\"JpegTurbo\"") + (string-append "\"" (assoc-ref inputs "libjpeg-turbo") "\"")))) + ;; There's a Julia file for each platform, override them all + (find-files "src/wrappers/" "\\.jl$"))))))) + (inputs + `(("libjpeg-turbo" ,libjpeg-turbo))) + (propagated-inputs + `(("julia-jllwrappers" ,julia-jllwrappers))) + (home-page "https://github.com/JuliaBinaryWrappers/JpegTurbo_jll.jl") + (synopsis "Libjpeg-turbo library wrappers") + (description "This package provides a wrapper for the libjpeg-turbo library.") + (license license:expat))) + (define-public julia-json (package (name "julia-json") |