1 { stdenv, lib, buildGoModule, fetchFromGitHub }:
3 let bins = [ "regbot" "regctl" "regsync" ]; in
10 src = fetchFromGitHub {
14 sha256 = "sha256-WyjVJp0JVwLitz46YjPGpR/+AjLhjgqTRqabCB9VhHw=";
16 vendorSha256 = "sha256-QTeVgvjRw2wBd8QGoVpRVTTh+Wwu2NEZYR1Z9R52/p0=";
18 outputs = [ "out" ] ++ bins;
23 "-X main.VCSTag=${tag}"
27 lib.concatStringsSep "\n" (
29 mkdir -p ''$${bin}/bin &&
30 mv $out/bin/${bin} ''$${bin}/bin/ &&
31 ln -s ''$${bin}/bin/${bin} $out/bin/
36 broken = stdenv.isDarwin;
37 description = "Docker and OCI Registry Client in Go and tooling using those libraries";
38 homepage = "https://github.com/regclient/regclient";
39 license = licenses.asl20;
40 maintainers = with maintainers; [ ];