From 882043eee3f2e47f0b23b16088d0b77e37c903a7 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 19 Aug 2025 18:11:43 +0100 Subject: webhook: Remove bundled dependencies. --- guix/forge/webhook.scm | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'guix') diff --git a/guix/forge/webhook.scm b/guix/forge/webhook.scm index b729553..275827b 100644 --- a/guix/forge/webhook.scm +++ b/guix/forge/webhook.scm @@ -22,6 +22,18 @@ #:use-module (gnu build linux-container) #:use-module ((gnu packages admin) #:select (shadow)) #:use-module ((gnu packages golang) #:select (go-1.21)) + #:use-module ((gnu packages golang-build) + #:select (go-golang-org-x-sys)) + #:use-module ((gnu packages golang-web) + #:select (go-github-com-go-chi-chi-v5 + go-github-com-gorilla-mux)) + #:use-module ((gnu packages golang-xyz) + #:select (go-github-com-clbanning-mxj-v2 + go-github-com-coreos-go-systemd-v22 + go-github-com-dustin-go-humanize + go-github-com-fsnotify-fsnotify + go-github-com-ghodss-yaml + go-github-com-gofrs-uuid-v5)) #:use-module ((gnu packages guile) #:select (guile-json-4)) #:use-module (gnu services) #:use-module (gnu services shepherd) @@ -77,7 +89,12 @@ (file-name (git-file-name name version)) (sha256 (base32 - "15cihbf49kbhgwavjsvl4qfcf3lyqa39vyqdxglmnkn603c3nk6w")))) + "15cihbf49kbhgwavjsvl4qfcf3lyqa39vyqdxglmnkn603c3nk6w")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Remove bundled dependencies. + (delete-file-recursively "vendor"))))) (build-system go-build-system) (arguments (list #:go go-1.21 @@ -91,6 +108,16 @@ (search-input-file inputs "bin/echo")) (("/bin/sh") (search-input-file inputs "bin/sh")))))))) + (inputs + (list go-github-com-clbanning-mxj-v2 + go-github-com-coreos-go-systemd-v22 + go-github-com-dustin-go-humanize + go-github-com-fsnotify-fsnotify + go-github-com-ghodss-yaml + go-github-com-go-chi-chi-v5 + go-github-com-gofrs-uuid-v5 + go-github-com-gorilla-mux + go-golang-org-x-sys-0.18)) (home-page "https://github.com/adnanh/webhook") (synopsis "Lightweight incoming webhook server") (description "webhook is a lightweight configurable tool written -- cgit 1.4.1