1 { stdenv, lib, buildGoModule, fetchFromGitHub }:
3 let bins = [ "regbot" "regctl" "regsync" ]; in
10 src = fetchFromGitHub {
14 sha256 = "sha256-cYfQ27QPdx3TA7zUZ7x0+kIr//EXL+a2APK5pnlupJM=";
16 vendorHash = "sha256-UbzMkHpmIfJoCToAT1vOYJvqkhxSGogohT2aemegZ94=";
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 description = "Docker and OCI Registry Client in Go and tooling using those libraries";
37 homepage = "https://github.com/regclient/regclient";
38 license = licenses.asl20;
39 maintainers = with maintainers; [ ];