15 src = fetchFromGitHub {
19 hash = "sha256-WSADuhr6p8N0Oh1xIG7yItM6t0EWUiAkzNbdKsSc4WA=";
22 vendorHash = "sha256-UUD9/5+McR1t5oO4/6TSScT7hhSKM0OpBf94LVQG1Pw=";
24 nativeBuildInputs = [ installShellFiles ];
29 "-X github.com/goharbor/harbor-cli/cmd/harbor/internal/version.Version=${version}"
32 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
33 installShellCompletion --cmd harbor \
34 --bash <($out/bin/harbor completion bash) \
35 --fish <($out/bin/harbor completion fish) \
36 --zsh <($out/bin/harbor completion zsh)
39 passthru.tests.version = testers.testVersion {
41 command = "harbor version";
45 homepage = "https://github.com/goharbor/harbor-cli";
46 description = "Command-line tool facilitates seamless interaction with the Harbor container registry";
47 changelog = "https://github.com/goharbor/harbor-cli/releases/tag/v${version}";
48 license = lib.licenses.asl20;
49 maintainers = with lib.maintainers; [ aaronjheng ];
50 mainProgram = "harbor";