From afff06e4cee2c4a40ddf8d3c072643b359e600d7 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 30 May 2021 11:16:23 +0300 Subject: gnu: Add julia-opus-jll. * gnu/packages/julia-jll.scm (julia-opus-jll): New variable. --- gnu/packages/julia-jll.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'gnu/packages/julia-jll.scm') diff --git a/gnu/packages/julia-jll.scm b/gnu/packages/julia-jll.scm index acdfb926c7..904597a506 100644 --- a/gnu/packages/julia-jll.scm +++ b/gnu/packages/julia-jll.scm @@ -707,6 +707,42 @@ build tree Yggdrasil.") (description "This package provides a wrapper for the openssl library.") (license license:expat))) +(define-public julia-opus-jll + (package + (name "julia-opus-jll") + (version "1.3.1+1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/JuliaBinaryWrappers/Opus_jll.jl") + (commit (string-append "Opus-v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zm0rnr3pi83bzza1azlrv8l7l0mjpykc3qz4b5p9zcdzf7aw4vn")))) + (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\"Opus\"") + (string-append "\"" (assoc-ref inputs "opus") "\"")))) + ;; There's a Julia file for each platform, override them all + (find-files "src/wrappers/" "\\.jl$"))))))) + (inputs + `(("opus" ,opus))) + (propagated-inputs + `(("julia-jllwrappers" ,julia-jllwrappers))) + (home-page "https://github.com/JuliaBinaryWrappers/Opus_jll.jl") + (synopsis "Opus library wrappers") + (description "This package provides a wrapper for the opus audio library.") + (license license:expat))) + (define-public julia-x264-jll (package (name "julia-x264-jll") -- cgit v1.2.3