about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2025-08-19 13:52:54 +0100
committerArun Isaac2025-08-19 13:52:54 +0100
commit2e7b78f51795f396e47ea0163042f51e2f78bc72 (patch)
tree2eb3f6960aad5214981bcd1ab93839f77c7a6836
parent4474c0bdb1815ab87547939ac858a8ffaddb1aba (diff)
downloadguix-forge-2e7b78f51795f396e47ea0163042f51e2f78bc72.tar.gz
guix-forge-2e7b78f51795f396e47ea0163042f51e2f78bc72.tar.lz
guix-forge-2e7b78f51795f396e47ea0163042f51e2f78bc72.zip
webhook: Rewrite package definition using new G-expression style.
-rw-r--r--guix/forge/webhook.scm19
1 files changed, 9 insertions, 10 deletions
diff --git a/guix/forge/webhook.scm b/guix/forge/webhook.scm
index 7915bcb..a13840d 100644
--- a/guix/forge/webhook.scm
+++ b/guix/forge/webhook.scm
@@ -1,5 +1,5 @@
 ;;; guix-forge --- Guix software forge meta-service
-;;; Copyright © 2022 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2022, 2025 Arun Isaac <arunisaac@systemreboot.net>
 ;;;
 ;;; This file is part of guix-forge.
 ;;;
@@ -63,15 +63,14 @@
                 "0n03xkgwpzans0cymmzb0iiks8mi2c76xxdak780dk0jbv6qgp5i"))))
     (build-system go-build-system)
     (arguments
-     `(#:import-path "github.com/adnanh/webhook"
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'configure
-           (lambda* (#:key inputs #:allow-other-keys)
-             (substitute* "src/github.com/adnanh/webhook/webhook_test.go"
-               (("/bin/echo")
-                (string-append (assoc-ref inputs "coreutils")
-                               "/bin/echo"))))))))
+     (list #:import-path "github.com/adnanh/webhook"
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'configure
+                 (lambda* (#:key inputs #:allow-other-keys)
+                   (substitute* "src/github.com/adnanh/webhook/webhook_test.go"
+                     (("/bin/echo")
+                      (search-input-file inputs "bin/echo"))))))))
     (home-page "https://github.com/adnanh/webhook")
     (synopsis "Lightweight incoming webhook server")
     (description "webhook is a lightweight configurable tool written