From 40952628a9f20728c3ec52e1f1503615bab93b52 Mon Sep 17 00:00:00 2001 From: Daniel Løvbrøtte Olsen Date: Mon, 18 Jan 2021 00:29:28 +0100 Subject: matrix-corporal: init at 2.0.1 (#99074) * matrix-corporal: init at 2.0.1 * Update pkgs/servers/matrix-corporal/default.nix Co-authored-by: Sandro --- pkgs/servers/matrix-corporal/default.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pkgs/servers/matrix-corporal/default.nix (limited to 'pkgs/servers/matrix-corporal') diff --git a/pkgs/servers/matrix-corporal/default.nix b/pkgs/servers/matrix-corporal/default.nix new file mode 100644 index 00000000000..d7822afffa5 --- /dev/null +++ b/pkgs/servers/matrix-corporal/default.nix @@ -0,0 +1,26 @@ +{ lib, fetchFromGitHub, buildGoModule }: + +buildGoModule rec { + pname = "matrix-corporal"; + version = "2.0.1"; + + src = fetchFromGitHub { + owner = "devture"; + repo = pname; + rev = version; + sha256 = "1n8yjmy3j0spgwpxgc26adhpl52fm3d2xbmkf5n9dwzw29grv68r"; + }; + + buildFlagsArray = [ + "-ldflags=-s -w -X main.GitCommit=${version} -X main.GitBranch=${version} -X main.GitState=nixpkgs -X main.GitSummary=${version} -X main.Version=${version}" + ]; + + vendorSha256 = "1gi6mff6h0fkgfq5yybd1qcy2qwrvc4kzi11x7arfl9nr0d24rb2"; + + 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; + }; +} -- cgit 1.4.1