2023-02-02 19:01:19 +01:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitea }:
|
2023-01-12 00:07:53 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "eris-go";
|
2023-02-02 19:01:19 +01:00
|
|
|
version = "20230202";
|
2023-01-12 00:07:53 +01:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "eris";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-02-02 19:01:19 +01:00
|
|
|
hash = "sha256-o9FRlUtMk1h8sR+am2gNEQOMgAceRTdRusI4a6ikHUM=";
|
2023-01-12 00:07:53 +01:00
|
|
|
};
|
|
|
|
|
2023-02-02 19:01:19 +01:00
|
|
|
vendorHash = "sha256-ZDJm7ZlDBVWLnuC90pOwa608GnuEgy0N/I96vvesZPY=";
|
2023-01-12 00:07:53 +01: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-02 19:01:19 +01:00
|
|
|
broken = stdenv.isDarwin;
|
2023-01-12 00:07:53 +01:00
|
|
|
};
|
|
|
|
}
|