2023-02-09 11:40:11 +00:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitea }:
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "eris-go";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "20230202";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "eris";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-02-09 11:40:11 +00:00
|
|
|
hash = "sha256-o9FRlUtMk1h8sR+am2gNEQOMgAceRTdRusI4a6ikHUM=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
vendorHash = "sha256-ZDJm7ZlDBVWLnuC90pOwa608GnuEgy0N/I96vvesZPY=";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
postInstall = "ln -s $out/bin/eris-get $out/bin/eris-put";
|
|
|
|
# eris-get is a multicall binary
|
|
|
|
|
|
|
|
meta = src.meta // {
|
|
|
|
description = "Implementation of ERIS for Go";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ ehmry ];
|
|
|
|
mainProgram = "eris-get";
|
2023-02-09 11:40:11 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
}
|