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