2021-12-16 20:37:21 +01:00
|
|
|
{ buildGoModule
|
|
|
|
, buildGoPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2022-07-31 15:49:46 +02:00
|
|
|
version = "2.3.0";
|
2021-12-16 20:37:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "influxdata";
|
|
|
|
repo = "influx-cli";
|
|
|
|
rev = "v${version}";
|
2022-07-31 15:49:46 +02:00
|
|
|
sha256 = "sha256-i3PN0mvSzPX/hu6fF2oizfioHZ2qU2V+mRwuxT1AYWo=";
|
2021-12-16 20:37:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
in buildGoModule {
|
|
|
|
pname = "influx-cli";
|
|
|
|
version = version;
|
|
|
|
src = src;
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-Boz1G8g0fjjlflxZh4V8sd/v0bE9Oy3DpqywOpKxjd0=";
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|