[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: laminar: Update chart.js input to 3.9.1.
From: |
guix-commits |
Subject: |
branch master updated: gnu: laminar: Update chart.js input to 3.9.1. |
Date: |
Fri, 23 Feb 2024 12:32:02 -0500 |
This is an automated email from the git hooks/post-receive script.
arunisaac pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new e7990b1217 gnu: laminar: Update chart.js input to 3.9.1.
e7990b1217 is described below
commit e7990b12170eec0c35541196f948be26a9e4a519
Author: Arun Isaac <arunisaac@systemreboot.net>
AuthorDate: Fri Feb 23 16:46:48 2024 +0000
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: I309822993ea82f16a3c3dbda947135e3420b89eb
---
gnu/packages/ci.scm | 28 ++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/ci.scm b/gnu/packages/ci.scm
index 3336754b68..3908128361 100644
--- a/gnu/packages/ci.scm
+++ b/gnu/packages/ci.scm
@@ -5,7 +5,7 @@
;;; Copyright © 2017, 2020, 2021 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2017, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
;;; 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>
;;;
;;; This file is part of GNU Guix.
@@ -209,14 +209,15 @@ intended as a replacement for Hydra.")
(use-modules (ice-9 popen))
(mkdir-p "../build/js")
- (for-each (lambda (name)
- (let* ((file
- (assoc-ref inputs (string-append name ".js")))
- (port
+ (invoke "tar" "-xf" (assoc-ref inputs "chart.js.tgz")
+ "--strip-components" "2"
+ "package/dist/chart.js")
+ (for-each (lambda (file minified-file)
+ (let* ((port
(open-pipe* OPEN_READ "uglifyjs" file))
(destination
(string-append
- "../build/js/" name ".min.js")))
+ "../build/js/" minified-file)))
(call-with-output-file destination
(lambda (output-port)
@@ -226,9 +227,12 @@ intended as a replacement for Hydra.")
(unless (zero? exit)
(error "uglifyjs failed" exit)))))
- '("vue"
- "vue-router"
- "Chart"))
+ (list (assoc-ref inputs "vue.js")
+ (assoc-ref inputs "vue-router.js")
+ "chart.js")
+ (list "vue.min.js"
+ "vue-router.min.js"
+ "Chart.min.js"))
;; ansi_up.js isn't minified
(copy-file (assoc-ref inputs "ansi_up.js")
@@ -260,13 +264,13 @@ intended as a replacement for Hydra.")
(sha256
(base32
"1dx8wn38ds8d01kkih26fx1yrisg3kpz61qynjr4zil03ap0hrlr"))))
- ("Chart.js"
+ ("chart.js.tgz"
,(origin (method url-fetch)
(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
(base32
- "05m3gk6hqjx92j20drnk7q075qpjraywqaf25lnglmsgsgpiqsr7"))))))
+ "1ikjgspaknqlhpjad17563yph4pvrh8dkzjdx58pl23gg58hf7hi"))))))
(synopsis "Lightweight continuous integration service")
(description
"Laminar is a lightweight and modular continuous integration service. It
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: laminar: Update chart.js input to 3.9.1.,
guix-commits <=