From b0e0d8db46b23971a5426104e438daa5f4ef0040 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Tue, 7 Jun 2022 19:06:45 +0300 Subject: [PATCH] webhook: use buildGoModule --- pkgs/servers/http/webhook/default.nix | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/pkgs/servers/http/webhook/default.nix b/pkgs/servers/http/webhook/default.nix index 0d9fb54396b5..c19866cf8d87 100644 --- a/pkgs/servers/http/webhook/default.nix +++ b/pkgs/servers/http/webhook/default.nix @@ -1,12 +1,12 @@ -{ lib, buildGoPackage, fetchFromGitHub }: +{ lib +, buildGoModule +, fetchFromGitHub +}: -buildGoPackage rec { +buildGoModule rec { pname = "webhook"; version = "2.8.0"; - goPackagePath = "github.com/adnanh/webhook"; - excludedPackages = [ "test" ]; - src = fetchFromGitHub { owner = "adnanh"; repo = "webhook"; @@ -14,9 +14,16 @@ buildGoPackage rec { sha256 = "0n03xkgwpzans0cymmzb0iiks8mi2c76xxdak780dk0jbv6qgp5i"; }; + vendorSha256 = null; + + subPackages = [ "." ]; + + doCheck = false; + meta = with lib; { + description = "Incoming webhook server that executes shell commands"; homepage = "https://github.com/adnanh/webhook"; - license = [ licenses.mit ]; - description = "incoming webhook server that executes shell commands"; + license = licenses.mit; + maintainers = with maintainers; [ azahi ]; }; }