From f8c2d8141efef4565d12d8247bade069889b720e Mon Sep 17 00:00:00 2001 From: Thomas Ieong Date: Tue, 30 Jan 2024 00:42:35 +0000 Subject: [PATCH] gnu: Add minify. * gnu/packages/web.scm (minify): New variable. Co-authored-by: Sharlatan Hellseher Co-authored-by: Hilton Chain Signed-off-by: Sharlatan Hellseher Change-Id: I7289c77a17f63501b6c7771606d396241333ac3a --- gnu/packages/web.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 ;;; Copyright © 2023 Felix Lechner ;;; Copyright © 2023 Evgeny Pisemsky +;;; Copyright © 2023 Thomas Ieong ;;; 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")