6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
31 lines
715 B
Nix
31 lines
715 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "promql-cli";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nalbury";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-EV63fdG+GF+kVLH2TxHPhRcUU5xBvkW5bhHC1lEoj84=";
|
|
};
|
|
|
|
vendorHash = "sha256-jhNll04xGaxS6NJTh4spSW9zPrff8jk5OEQiRevPQwU=";
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
postInstall = ''
|
|
mv -v $out/bin/promql-cli $out/bin/promql
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Command-line tool to query a Prometheus server with PromQL and visualize the output";
|
|
homepage = "https://github.com/nalbury/promql-cli";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ arikgrahl ];
|
|
};
|
|
}
|