mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: Add julia-x264-jll.
* gnu/packages/julia-jll.scm (julia-x264-jll): New variable.
This commit is contained in:
parent
191c345d3e
commit
4073aeae46
1 changed files with 42 additions and 0 deletions
|
@ -32,6 +32,7 @@ (define-module (gnu packages julia-jll)
|
|||
#:use-module (gnu packages julia)
|
||||
#:use-module (gnu packages maths)
|
||||
#:use-module (gnu packages tls)
|
||||
#:use-module (gnu packages video)
|
||||
#:use-module (gnu packages web))
|
||||
|
||||
;;; TODO: Remove this autogenerated source package
|
||||
|
@ -401,6 +402,47 @@ (define-public julia-openspecfun-jll
|
|||
build tree Yggdrasil.")
|
||||
(license license:expat))))
|
||||
|
||||
(define-public julia-x264-jll
|
||||
(package
|
||||
(name "julia-x264-jll")
|
||||
(version "2020.7.14+0")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/JuliaBinaryWrappers/x264_jll.jl")
|
||||
(commit (string-append "x264-v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "131srmmcwhp9f2x4dq3dw4pzv2z0428mdrb923yzzlm7a89nf28p"))))
|
||||
(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)
|
||||
(let ((libx264 (assoc-ref inputs "libx264")))
|
||||
(map
|
||||
(lambda (wrapper)
|
||||
(substitute* wrapper
|
||||
;; Make sure we match the current library.
|
||||
(("libx264.so.157")
|
||||
(string-append "libx264.so."
|
||||
,(version-major (package-version libx264))))
|
||||
(("artifact\"x264\"")
|
||||
(string-append "\"" libx264 "\""))))
|
||||
;; There's a Julia file for each platform, override them all
|
||||
(find-files "src/wrappers/" "\\.jl$"))))))))
|
||||
(inputs
|
||||
`(("libx264" ,libx264)))
|
||||
(propagated-inputs
|
||||
`(("julia-jllwrappers" ,julia-jllwrappers)))
|
||||
(home-page "https://github.com/JuliaBinaryWrappers/x264_jll.jl")
|
||||
(synopsis "x264 library wrappers")
|
||||
(description "This package provides a wrapper for the x264 video library.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public julia-zlib-jll
|
||||
(package
|
||||
(name "julia-zlib-jll")
|
||||
|
|
Loading…
Reference in a new issue