nixpkgs-suyu/pkgs/by-name/ma/matrix-hook/package.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

24 lines
668 B
Nix

{ 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";
mainProgram = "matrix-hook";
homepage = "https://github.com/pinpox/matrix-hook";
license = licenses.gpl3;
maintainers = with maintainers; [ pinpox mic92 zowoq ];
};
}