2024-01-13 08:15:51 +00:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitea, mandoc, tup, nixosTests }:
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "eris-go";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "20231219";
|
|
|
|
outputs = [ "out" "man" ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "eris";
|
2023-08-10 07:59:29 +00:00
|
|
|
repo = "eris-go";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-eXLfBkJgG51ZjR1qXRE2BgTrIpQsPW5SKeMlGd3J1NE=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
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
|
|
|
|
'';
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
skipNetworkTests = true;
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) eris-server; };
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
meta = src.meta // {
|
|
|
|
description = "Implementation of ERIS for Go";
|
2023-08-10 07:59:29 +00:00
|
|
|
homepage = "https://codeberg.org/eris/eris-go";
|
2023-01-20 10:41:00 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ ehmry ];
|
2023-02-09 11:40:11 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "eris-go";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
}
|