2021-12-16 19:37:21 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2024-04-16 02:49:50 +00:00
|
|
|
version = "2.7.4";
|
2021-12-16 19:37:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "influxdata";
|
|
|
|
repo = "influx-cli";
|
|
|
|
rev = "v${version}";
|
2024-04-16 02:49:50 +00:00
|
|
|
sha256 = "sha256-g/3hakOTRjRA6DU0DT5A+ChUF6ED/sdg3p4ZB5nbbU0=";
|
2021-12-16 19:37:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in buildGoModule {
|
|
|
|
pname = "influx-cli";
|
|
|
|
version = version;
|
2022-11-13 21:30:01 +00:00
|
|
|
inherit src;
|
2021-12-16 19:37:21 +00:00
|
|
|
|
2024-04-16 02:49:50 +00:00
|
|
|
vendorHash = "sha256-Ov0TPoMm0qi7kkWUUni677sCP1LwkT9+n3KHcAlQkDA=";
|
2021-12-16 19:37:21 +00:00
|
|
|
subPackages = [ "cmd/influx" ];
|
|
|
|
|
|
|
|
ldflags = [ "-X main.commit=v${version}" "-X main.version=${version}" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CLI for managing resources in InfluxDB v2";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://influxdata.com/";
|
|
|
|
maintainers = with maintainers; [ abbradar danderson ];
|
2023-08-13 11:34:56 +00:00
|
|
|
mainProgram = "influx";
|
2021-12-16 19:37:21 +00:00
|
|
|
};
|
|
|
|
}
|