about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ma/matrix-hook/package.nix
blob: ed9093da995743ad54bee1c69b14e515c48c16be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "matrix-hook";
  version = "1.0.0";
  src = fetchFromGitHub {
    owner = "pinpox";
    repo = "matrix-hook";
    rev = "v${version}";
    hash = "sha256-YmDsibVlAWLEG5QcqDImVb6RJfrfW6zrFnOEMO3Zxcw=";
  };
  vendorHash = "sha256-185Wz9IpJRBmunl+KGj/iy37YeszbT3UYzyk9V994oQ=";
  postInstall = ''
    install message.html.tmpl -Dt $out
  '';

  meta = with lib; {
    description = "A simple webhook for matrix";
    homepage = "https://github.com/pinpox/matrix-hook";
    license = licenses.gpl3;
    maintainers = with maintainers; [ pinpox mic92 zowoq ];
  };
}