2021-01-18 00:29:28 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "matrix-corporal";
|
2021-01-22 16:14:38 +01:00
|
|
|
version = "2.1.0";
|
2021-01-18 00:29:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "devture";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-01-22 16:14:38 +01:00
|
|
|
sha256 = "sha256-u1ppwy+t2ewAH0/+R6e0Ja5A3PQG/lUy2b6kgcMVj8E=";
|
2021-01-18 00:29:28 +01:00
|
|
|
};
|
|
|
|
|
2021-08-26 08:45:51 +02: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-18 00:29:28 +01:00
|
|
|
];
|
|
|
|
|
2021-01-22 16:14:38 +01:00
|
|
|
vendorSha256 = "sha256-YmUiGsg2UZfV6SHEPwnbmWPhGQ5teV+we9MBaJyrJr4=";
|
2021-01-18 00:29:28 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/devture/matrix-corporal";
|
|
|
|
description = "Reconciliator and gateway for a managed Matrix server";
|
|
|
|
maintainers = with maintainers; [ dandellion ];
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
};
|
|
|
|
}
|