nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "matrix-hook";
9 version = "1.0.0";
10 src = fetchFromGitHub {
11 owner = "pinpox";
12 repo = "matrix-hook";
13 rev = "v${version}";
14 hash = "sha256-YmDsibVlAWLEG5QcqDImVb6RJfrfW6zrFnOEMO3Zxcw=";
15 };
16 vendorHash = "sha256-185Wz9IpJRBmunl+KGj/iy37YeszbT3UYzyk9V994oQ=";
17 postInstall = ''
18 install message.html.tmpl -Dt $out
19 '';
20
21 meta = {
22 description = "Simple webhook for matrix";
23 mainProgram = "matrix-hook";
24 homepage = "https://github.com/pinpox/matrix-hook";
25 license = lib.licenses.gpl3;
26 maintainers = with lib.maintainers; [
27 pinpox
28 mic92
29 zowoq
30 ];
31 };
32}