about summary refs log tree commit diff
path: root/guix/forge/webhook.scm
diff options
context:
space:
mode:
authorArun Isaac2025-08-19 18:11:43 +0100
committerArun Isaac2025-08-19 18:12:24 +0100
commit882043eee3f2e47f0b23b16088d0b77e37c903a7 (patch)
tree851e28c8ac1fd12fa4d685df5170eadd3900155c /guix/forge/webhook.scm
parent59c75afdbe1aa3c860665d7127bfb6e6cb4e0ece (diff)
downloadguix-forge-882043eee3f2e47f0b23b16088d0b77e37c903a7.tar.gz
guix-forge-882043eee3f2e47f0b23b16088d0b77e37c903a7.tar.lz
guix-forge-882043eee3f2e47f0b23b16088d0b77e37c903a7.zip
webhook: Remove bundled dependencies. HEAD main
Diffstat (limited to 'guix/forge/webhook.scm')
-rw-r--r--guix/forge/webhook.scm29
1 files changed, 28 insertions, 1 deletions
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