12 src = fetchFromGitHub {
16 sha256 = "sha256-0Gyoy9T5pA+40k8kKybWBMtOfpKZxw3Vvp4ZB4ptcJs=";
25 nativeBuildInputs = [ installShellFiles ];
27 vendorHash = "sha256-Ov0TPoMm0qi7kkWUUni677sCP1LwkT9+n3KHcAlQkDA=";
28 subPackages = [ "cmd/influx" ];
31 "-X main.commit=v${version}"
32 "-X main.version=${version}"
35 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
36 installShellCompletion --cmd influx \
37 --bash <($out/bin/influx completion bash) \
38 --zsh <($out/bin/influx completion zsh)
42 description = "CLI for managing resources in InfluxDB v2";
43 license = licenses.mit;
44 homepage = "https://influxdata.com/";
45 maintainers = with maintainers; [ abbradar ];
46 mainProgram = "influx";