summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorThomas Ieong <th.ieong@free.fr>2024-01-30 00:42:35 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-01-30 22:58:22 +0000
commitf8c2d8141efef4565d12d8247bade069889b720e (patch)
tree373eadd2056b0e85688dd17f43d292db88f9d084 /gnu
parentaab6ea6f41fcabd183b8cc6ad25b1fbd8ca64621 (diff)
downloadguix-f8c2d8141efef4565d12d8247bade069889b720e.tar.gz
gnu: Add minify.
* gnu/packages/web.scm (minify): New variable.

Co-authored-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Co-authored-by: Hilton Chain <hako@ultrarare.space>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Change-Id: I7289c77a17f63501b6c7771606d396241333ac3a
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/web.scm20
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 1a97dd8dec..e7b06ff902 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -65,6 +65,7 @@
 ;;; Copyright © 2023 Christopher Howard <christopher@librehacker.com>
 ;;; Copyright © 2023 Felix Lechner <felix.lechner@lease-up.com>
 ;;; Copyright © 2023 Evgeny Pisemsky <evgeny@pisemsky.com>
+;;; Copyright © 2023 Thomas Ieong <th.ieong@free.fr>
 ;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -143,7 +144,9 @@
   #:use-module (gnu packages gnunet)
   #:use-module (gnu packages gnupg)
   #:use-module (gnu packages golang)
+  #:use-module (gnu packages golang-check)
   #:use-module (gnu packages golang-web)
+  #:use-module (gnu packages golang-xyz)
   #:use-module (gnu packages gperf)
   #:use-module (gnu packages graphviz)
   #:use-module (gnu packages gtk)
@@ -394,6 +397,23 @@ and its related documentation.")
 @end itemize\n")
     (license license:asl2.0)))
 
+(define-public minify
+  (package
+    (inherit go-github-com-tdewolff-minify-v2)
+    (name "minify")
+    (arguments
+     (substitute-keyword-arguments
+         (package-arguments go-github-com-tdewolff-minify-v2)
+       ((#:install-source? _ #t) #f)
+       ((#:import-path _ "github.com/tdewolff/minify/v2")
+        "github.com/tdewolff/minify/cmd/minify")))
+    (inputs
+     (list go-github-com-djherbis-atime
+           go-github-com-dustin-go-humanize
+           go-github-com-fsnotify-fsnotify
+           go-github-com-matryer-try
+           go-github-com-spf13-pflag))))
+
 (define-public mod-wsgi
   (package
     (name "mod-wsgi")