nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, buildGoModule, fetchFromGitea }:
2
3buildGoModule rec {
4 pname = "eris-go";
5 version = "20230202";
6
7 src = fetchFromGitea {
8 domain = "codeberg.org";
9 owner = "eris";
10 repo = pname;
11 rev = version;
12 hash = "sha256-o9FRlUtMk1h8sR+am2gNEQOMgAceRTdRusI4a6ikHUM=";
13 };
14
15 vendorHash = "sha256-ZDJm7ZlDBVWLnuC90pOwa608GnuEgy0N/I96vvesZPY=";
16
17 postInstall = "ln -s $out/bin/eris-get $out/bin/eris-put";
18 # eris-get is a multicall binary
19
20 meta = src.meta // {
21 description = "Implementation of ERIS for Go";
22 license = lib.licenses.bsd3;
23 maintainers = with lib.maintainers; [ ehmry ];
24 mainProgram = "eris-get";
25 broken = stdenv.isDarwin;
26 };
27}