2021-01-17 23:29:28 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "matrix-corporal";
|
2021-11-19 15:15:31 +00:00
|
|
|
version = "2.2.0";
|
2021-01-17 23:29:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "devture";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-11-19 15:15:31 +00:00
|
|
|
sha256 = "sha256-KSKPTbF1hhzLyD+iL4+hW9EuV+xFYzSzHu1DSGXWm90=";
|
2021-01-17 23:29:28 +00:00
|
|
|
};
|
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-X main.GitCommit=${version}" "-X main.GitBranch=${version}" "-X main.GitState=nixpkgs" "-X main.GitSummary=${version}" "-X main.Version=${version}"
|
2021-01-17 23:29:28 +00:00
|
|
|
];
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-sC9JA6VRmHGuO3anaZW2Ih5QnRrUom9IIOE7yi3TTG8=";
|
2021-01-17 23:29:28 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/devture/matrix-corporal";
|
|
|
|
description = "Reconciliator and gateway for a managed Matrix server";
|
|
|
|
maintainers = with maintainers; [ dandellion ];
|
2022-04-01 19:34:55 +00:00
|
|
|
mainProgram = "devture-matrix-corporal";
|
2021-01-17 23:29:28 +00:00
|
|
|
license = licenses.agpl3Only;
|
|
|
|
};
|
|
|
|
}
|