gnu: laminar: Update chart.js input to 3.9.1.
* gnu/packages/ci.scm (laminar)[inputs]: Update chart.js to 3.9.1. [arguments]: Adapt copy-in-javascript-and-css phase for chart.js-3.9.1. Change-Id: I309822993ea82f16a3c3dbda947135e3420b89ebmaster
parent
aefc742820
commit
e7990b1217
|
@ -5,7 +5,7 @@
|
||||||
;;; Copyright © 2017, 2020, 2021 Mathieu Othacehe <m.othacehe@gmail.com>
|
;;; Copyright © 2017, 2020, 2021 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||||
;;; Copyright © 2017, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2017, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
|
;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
|
||||||
;;; Copyright © 2022 Arun Isaac <arunisaac@systemreboot.net>
|
;;; Copyright © 2022, 2024 Arun Isaac <arunisaac@systemreboot.net>
|
||||||
;;; Copyright © 2023 David Pflug <david@pflug.io>
|
;;; Copyright © 2023 David Pflug <david@pflug.io>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
|
@ -209,14 +209,15 @@ intended as a replacement for Hydra.")
|
||||||
(use-modules (ice-9 popen))
|
(use-modules (ice-9 popen))
|
||||||
|
|
||||||
(mkdir-p "../build/js")
|
(mkdir-p "../build/js")
|
||||||
(for-each (lambda (name)
|
(invoke "tar" "-xf" (assoc-ref inputs "chart.js.tgz")
|
||||||
(let* ((file
|
"--strip-components" "2"
|
||||||
(assoc-ref inputs (string-append name ".js")))
|
"package/dist/chart.js")
|
||||||
(port
|
(for-each (lambda (file minified-file)
|
||||||
|
(let* ((port
|
||||||
(open-pipe* OPEN_READ "uglifyjs" file))
|
(open-pipe* OPEN_READ "uglifyjs" file))
|
||||||
(destination
|
(destination
|
||||||
(string-append
|
(string-append
|
||||||
"../build/js/" name ".min.js")))
|
"../build/js/" minified-file)))
|
||||||
|
|
||||||
(call-with-output-file destination
|
(call-with-output-file destination
|
||||||
(lambda (output-port)
|
(lambda (output-port)
|
||||||
|
@ -226,9 +227,12 @@ intended as a replacement for Hydra.")
|
||||||
(unless (zero? exit)
|
(unless (zero? exit)
|
||||||
(error "uglifyjs failed" exit)))))
|
(error "uglifyjs failed" exit)))))
|
||||||
|
|
||||||
'("vue"
|
(list (assoc-ref inputs "vue.js")
|
||||||
"vue-router"
|
(assoc-ref inputs "vue-router.js")
|
||||||
"Chart"))
|
"chart.js")
|
||||||
|
(list "vue.min.js"
|
||||||
|
"vue-router.min.js"
|
||||||
|
"Chart.min.js"))
|
||||||
|
|
||||||
;; ansi_up.js isn't minified
|
;; ansi_up.js isn't minified
|
||||||
(copy-file (assoc-ref inputs "ansi_up.js")
|
(copy-file (assoc-ref inputs "ansi_up.js")
|
||||||
|
@ -260,13 +264,13 @@ intended as a replacement for Hydra.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1dx8wn38ds8d01kkih26fx1yrisg3kpz61qynjr4zil03ap0hrlr"))))
|
"1dx8wn38ds8d01kkih26fx1yrisg3kpz61qynjr4zil03ap0hrlr"))))
|
||||||
("Chart.js"
|
("chart.js.tgz"
|
||||||
,(origin (method url-fetch)
|
,(origin (method url-fetch)
|
||||||
(uri (string-append "https://github.com/chartjs/Chart.js/"
|
(uri (string-append "https://github.com/chartjs/Chart.js/"
|
||||||
"releases/download/v2.7.2/Chart.js"))
|
"releases/download/v3.9.1/chart.js-3.9.1.tgz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"05m3gk6hqjx92j20drnk7q075qpjraywqaf25lnglmsgsgpiqsr7"))))))
|
"1ikjgspaknqlhpjad17563yph4pvrh8dkzjdx58pl23gg58hf7hi"))))))
|
||||||
(synopsis "Lightweight continuous integration service")
|
(synopsis "Lightweight continuous integration service")
|
||||||
(description
|
(description
|
||||||
"Laminar is a lightweight and modular continuous integration service. It
|
"Laminar is a lightweight and modular continuous integration service. It
|
||||||
|
|
Reference in New Issue