about summary refs log tree commit diff
path: root/gn/packages/javascript.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gn/packages/javascript.scm')
-rw-r--r--gn/packages/javascript.scm217
1 files changed, 217 insertions, 0 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm
index e55144e..cca4d07 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -2248,3 +2248,220 @@ browser compatibility, including legacy browsers.
     (license (list license:gpl2+
 		   license:lgpl2.1+
 		   license:mpl1.1))))
+
+(define-public javascript-cytoscape-3.17
+  (package
+    (inherit javascript-cytoscape)
+    (name "javascript-cytoscape")
+    (version "3.17.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/cytoscape/cytoscape.js")
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0fp4bv3gq9vj0517h61jvg7bxk8fyrhrq0jr1v4d0lzp164sgxln"))))))
+
+(define-public js-cytoscape-svg-vendor-0.3.1
+  (package
+    (name "js-cytoscape-svg-vendor")
+    (version "0.3.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append "https://unpkg.com/cytoscape-svg@" version
+                            "/cytoscape-svg.js"))
+        (sha256
+         (base32
+          "0ic0m91a4a4517c6f8nwf649yyq6xma57rxp8cyk4261qhk70494"))))
+    (build-system trivial-build-system)
+    (arguments
+     `(#:modules ((guix build utils))
+       #:builder
+       (begin
+         (use-modules (guix build utils))
+         (let* ((out  (assoc-ref %outputs "out"))
+                (dest (string-append out "//share/javascript")))
+           (mkdir-p dest)
+           (copy-file (assoc-ref %build-inputs "source")
+                      (string-append dest "/cytoscape-svg.js"))
+           #t))))
+    (home-page "https://kinimesi.github.io/cytoscape-svg")
+    (synopsis "Cytoscape.js extension to export the current graph view as an SVG")
+    (description
+     "A Cytoscape.js extension to export the current graph view as an SVG.")
+    (license license:gpl3)
+    (properties `((hidden? . #t)))))
+
+(define-public javascript-datatables-scroller-style-2.4.3
+  (package
+    (inherit javascript-datatables-scroller-style)
+    (name "javascript-datatables-scroller-style-2.4.3")
+    (version "2.4.3")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/DataTables/Dist-DataTables-Scroller-DataTables.git")
+               (commit version)))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "1b7m8xwbr05hglfy00kzv1vmqvvp9y8n1kyb3ka95gf7sllihhf9"))))
+    (propagated-inputs
+     (modify-inputs
+      (package-propagated-inputs javascript-datatables-scroller-style)
+      (delete "javascript-datatables")))))
+
+(define-public javascript-datatables-scroller-style-2.4
+  javascript-datatables-scroller-style-2.4.3)
+
+(define-public javascript-datatables-scroller-style-2
+  javascript-datatables-scroller-style-2.4)
+
+(define-public javascript-datatables-scroller-2.4.3
+  (package
+    (inherit javascript-datatables-scroller)
+    (name "javascript-datatables-scroller-2.4.3")
+    (version "2.4.3")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/DataTables/Dist-DataTables-Scroller.git")
+               (commit version)))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "0ziwnwc0xbf8rsm6ibikc3a49hyq18l8ya0wmrwyba24pixhajxn"))))
+    (propagated-inputs
+     (modify-inputs
+      (package-propagated-inputs javascript-datatables-scroller-style)
+      (delete "javascript-datatables")
+      (delete "javascript-datatables-scroller-style")))))
+
+(define-public javascript-datatables-scroller-2.4
+  javascript-datatables-scroller-2.4.3)
+
+(define-public javascript-datatables-scroller-2
+  javascript-datatables-scroller-2.4)
+
+(define-public javascript-datatables-buttons-3.2.2
+  (package
+    (inherit javascript-datatables-buttons)
+    (name "javascript-datatables-buttons-3.2.2")
+    (version "3.2.2")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/DataTables/Dist-DataTables-Buttons.git")
+               (commit version)))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "1186xxj6yhjqh0p13nczj25pc3c15n1f5nirl6fy649rhp4q26xc"))))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs javascript-datatables-buttons)
+       (delete "javascript-datatables")))))
+
+(define-public javascript-datatables-buttons-3.2
+  javascript-datatables-buttons-3.2.2)
+
+(define-public javascript-datatables-buttons-3
+  javascript-datatables-buttons-3.2)
+
+(define-public javascript-jquery-1.12.4
+  (package
+    (inherit javascript-jquery)
+    (name "javascript-jquery-1.12.4")
+    (version "1.12.4")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/jquery/jquery.git")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "02qgvwsyvvr6liijj1xyypq02svbwjlk8m9yr9dgd4hzfs50rlhq"))))))
+
+(define-public javascript-jquery-1.12 javascript-jquery-1.12.4)
+
+(define-public javascript-jquery-1 javascript-jquery-1.12)
+
+(define-public javascript-d3js-4
+  (package
+    (inherit javascript-d3js)
+    (version "4.13.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append "https://github.com/d3/d3/releases/download/v"
+                            version "/d3.zip"))
+        (sha256
+         (base32 "06yqgyvkpvh0lg7rsh4hjzq72fylkd8ziqcf7yhgy510x0mqla19"))))
+    (arguments
+     `(#:modules ((guix build utils))
+       #:builder
+       (begin
+         (use-modules (guix build utils))
+         (let* ((out (assoc-ref %outputs "out"))
+                (name "d3js")
+                (unzip (string-append (assoc-ref %build-inputs "unzip")
+                                      "/bin/unzip"))
+                (targetdir (string-append out "/share/genenetwork/javascript/" name))
+                (source (assoc-ref %build-inputs "source")))
+           (invoke unzip source)
+           (install-file "d3.js" targetdir)
+           (install-file "d3.min.js" targetdir)
+           (install-file "LICENSE" (string-append out "/share/doc/d3js-" ,version))))))))
+
+(define-public js-filesaver-1.3.2
+  (package
+    (inherit js-filesaver)
+    (name "js-filesaver")
+    (version "1.3.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/eligrey/FileSaver.js")
+                     (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "02f34yr56i5fyppna52bhn6i9wj0zhvj4vp9vkg9v74yls1hdczz"))))
+    (arguments
+     `(#:javascript-files '("FileSaver.js")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'install-unminified-version
+           (lambda* (#:key outputs #:allow-other-keys)
+             (install-file "FileSaver.js"
+                           (string-append (assoc-ref outputs "out")
+                                          "/share/javascript"))
+             #t)))))))
+
+(define-public js-popper-1.12.9
+  (package
+    (name "js-popper")
+    (version "1.12.9")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/popperjs/popper-core")
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0j7gfb7agvvzxv09vq8yr5h04pls5a8md2qw62qyn20112p0hdzs"))))
+    (build-system minify-build-system)
+    (arguments
+     `(#:javascript-files '("dist/umd/popper.js")))
+    (home-page "https://popper.js.org/")
+    (synopsis "Tooltip and popover positioning engine")
+    (description
+     "Given an element, such as a button, and a tooltip element describing it,
+Popper will automatically put the tooltip in the right place near the button.")
+    (license license:expat)))