11 let bins = [ "regbot" "regctl" "regsync" ]; in
18 src = fetchFromGitHub {
22 sha256 = "sha256-GT8SJg24uneEbV8WY8Wl2w3lxqLJ7pFCa+654ksBfG4=";
24 vendorHash = "sha256-cxydurN45ovb4XngG4L/K6L+QMfsaRBZhfLYzKohFNY=";
26 outputs = [ "out" ] ++ bins;
31 "-X github.com/regclient/regclient/internal/version.vcsTag=${tag}"
34 nativeBuildInputs = [ installShellFiles lndir ];
36 postInstall = lib.concatMapStringsSep "\n"
42 mv $out/bin/${bin} $bin/bin
44 installShellCompletion --cmd ${bin} \
45 --bash <($bin/bin/${bin} completion bash) \
46 --fish <($bin/bin/${bin} completion fish) \
47 --zsh <($bin/bin/${bin} completion zsh)
49 lndir -silent $bin $out
55 passthru.tests = lib.mergeAttrsList (
58 "${bin}Version" = testers.testVersion {
60 command = "${bin} version";
67 __darwinAllowLocalNetworking = true;
70 description = "Docker and OCI Registry Client in Go and tooling using those libraries";
71 homepage = "https://github.com/regclient/regclient";
72 license = licenses.asl20;
73 maintainers = with maintainers; [ maxbrunet ];