13 src = fetchFromGitHub {
17 hash = "sha256-uk0tG66u0gQgEzpiFAeMC0qPrd+Pk6nbrXuuyOtVLe4=";
20 vendorHash = "sha256-qf0l76MGIFv5m7uSjo4FgS6XxYzCT4+Efgt6W6jA1i8=";
22 nativeBuildInputs = [ installShellFiles ];
29 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
30 installShellCompletion --cmd vultr-cli \
31 --bash <($out/bin/vultr-cli completion bash) \
32 --fish <($out/bin/vultr-cli completion fish) \
33 --zsh <($out/bin/vultr-cli completion zsh)
37 description = "Official command line tool for Vultr services";
38 homepage = "https://github.com/vultr/vultr-cli";
39 changelog = "https://github.com/vultr/vultr-cli/blob/v${version}/CHANGELOG.md";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ Br1ght0ne ];
42 mainProgram = "vultr-cli";