blob: 50a37c008ffd576aabf1d228376b4fe3dcf9d117 (
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ lib, stdenv, buildGoModule, fetchFromGitea, mandoc, tup, nixosTests }:
buildGoModule rec {
pname = "eris-go";
version = "20231219";
outputs = [ "out" "man" ];
src = fetchFromGitea {
domain = "codeberg.org";
owner = "eris";
repo = "eris-go";
rev = version;
hash = "sha256-eXLfBkJgG51ZjR1qXRE2BgTrIpQsPW5SKeMlGd3J1NE=";
};
vendorHash = "sha256-pA/fz7JpDwdTRFfLDY0M6p9TeBOK68byhy/0Cw53p4M=";
nativeBuildInputs = [ mandoc tup ];
postConfigure = ''
rm -f *.md
tupConfigure
'';
postBuild = "tupBuild";
postInstall = ''
install -D *.1.man -t $man/share/man/man1
'';
skipNetworkTests = true;
passthru.tests = { inherit (nixosTests) eris-server; };
meta = src.meta // {
description = "Implementation of ERIS for Go";
homepage = "https://codeberg.org/eris/eris-go";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ehmry ];
broken = stdenv.isDarwin;
mainProgram = "eris-go";
};
}
|