gnu: r-radiant-data: Update to 1.5.6.
* gnu/packages/cran.scm (r-radiant-data): Update to 1.5.6. [source]: Delete minified JavaScript. [arguments]: Add build phase 'process-javascript. [native-inputs]: Add sources for html2canvas.js.
This commit is contained in:
parent
376c52a949
commit
49afe64152
1 changed files with 34 additions and 3 deletions
|
@ -10276,22 +10276,44 @@ local smoothers and many more.")
|
||||||
(define-public r-radiant-data
|
(define-public r-radiant-data
|
||||||
(package
|
(package
|
||||||
(name "r-radiant-data")
|
(name "r-radiant-data")
|
||||||
(version "1.5.1")
|
(version "1.5.6")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (cran-uri "radiant.data" version))
|
(uri (cran-uri "radiant.data" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1q6v7pkqk8rbxrmbnyj9drqb0p2rk8v4d3fxw1gqmqhzd6qp4yab"))
|
"1dd18brwgcpkqbnxg6jqk4r7aw1i2d7lg9mnfw59q95n6jk86lr5"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin
|
'(begin
|
||||||
;; Delete files that are under CC-NC-SA.
|
;; Delete files that are under CC-NC-SA.
|
||||||
(delete-file-recursively "inst/app/tools/help")
|
(delete-file-recursively "inst/app/tools/help")
|
||||||
#t))))
|
(delete-file "inst/assets/html2canvas/html2canvas.min.js")))))
|
||||||
(properties `((upstream-name . "radiant.data")))
|
(properties `((upstream-name . "radiant.data")))
|
||||||
(build-system r-build-system)
|
(build-system r-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:modules '((guix build utils)
|
||||||
|
(guix build r-build-system)
|
||||||
|
(srfi srfi-1))
|
||||||
|
#:phases
|
||||||
|
'(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'process-javascript
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(with-directory-excursion "inst/assets/html2canvas/"
|
||||||
|
(call-with-values
|
||||||
|
(lambda ()
|
||||||
|
(unzip2
|
||||||
|
`((,(assoc-ref inputs "_")
|
||||||
|
"html2canvas.min.js"))))
|
||||||
|
(lambda (sources targets)
|
||||||
|
(for-each (lambda (source target)
|
||||||
|
(format #true "Processing ~a --> ~a~%"
|
||||||
|
source target)
|
||||||
|
(invoke "esbuild" source "--minify"
|
||||||
|
(string-append "--outfile=" target)))
|
||||||
|
sources targets)))))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list r-base64enc
|
(list r-base64enc
|
||||||
r-broom
|
r-broom
|
||||||
|
@ -10327,6 +10349,15 @@ local smoothers and many more.")
|
||||||
r-tibble
|
r-tibble
|
||||||
r-tidyr
|
r-tidyr
|
||||||
r-writexl))
|
r-writexl))
|
||||||
|
(native-inputs
|
||||||
|
(list esbuild
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri "https://web.archive.org/web/20230428182027id_/\
|
||||||
|
https://html2canvas.hertzen.com/dist/html2canvas.js")
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0svkfnzzsydbsrwi7ky91rjqj97x5rfic69hbr9pwhm0zxlb9i81")))))
|
||||||
(home-page "https://github.com/radiant-rstats/radiant.data")
|
(home-page "https://github.com/radiant-rstats/radiant.data")
|
||||||
(synopsis "Data menu for Radiant: business analytics using R and Shiny")
|
(synopsis "Data menu for Radiant: business analytics using R and Shiny")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in a new issue