depot/third_party/nixpkgs/pkgs/by-name/er/eris-go/package.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

33 lines
822 B
Nix

{ lib, stdenv, buildGoModule, fetchFromGitea, nixosTests }:
buildGoModule rec {
pname = "eris-go";
version = "20240920";
outputs = [ "out" "man" ];
src = fetchFromGitea {
domain = "codeberg.org";
owner = "eris";
repo = "eris-go";
rev = version;
hash = "sha256-ZC4MBt1ucbZOn3sgs2xEiLLSDq7mz5Nj/in/TzydAbk=";
};
vendorHash = "sha256-TnB4BSO2Yb9AtcHgdEgNrFHAQJ7u4IzmhLdcSjbZ7SA=";
postInstall = ''
install -D *.1.gz -t $man/share/man/man1
'';
env.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 ];
mainProgram = "eris-go";
};
}