2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2023-01-11 07:51:40 +00:00
|
|
|
, nixosTests
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "webhook";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.8.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adnanh";
|
|
|
|
repo = "webhook";
|
|
|
|
rev = version;
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-8OpVpm9nEroUlr41VgnyM6sxd/FlSvoQK5COOWvo4Y4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
vendorHash = null;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) webhook; };
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
description = "Incoming webhook server that executes shell commands";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "webhook";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/adnanh/webhook";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ azahi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|