2021-12-19 01:06:50 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, buildGoPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "2.7.3";
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "influxdata";
|
|
|
|
repo = "influx-cli";
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-hRv7f2NeURsgLQ1zNgAhZvTjS0ei4+5lqokIu0iN+aI=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in buildGoModule {
|
|
|
|
pname = "influx-cli";
|
|
|
|
version = version;
|
2022-11-21 17:40:18 +00:00
|
|
|
inherit src;
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
vendorHash = "sha256-QNhL5RPkNLTXoQ0NqcZuKec3ZBc3CDTc/XTWvjy55wk=";
|
2021-12-19 01:06:50 +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 ];
|
|
|
|
};
|
|
|
|
}
|