depot/third_party/nixpkgs/pkgs/tools/misc/promql-cli/default.nix
Default email c3ac4d4040 Project import generated by Copybara.
GitOrigin-RevId: 1158501e7c7cba26d922723cf9f70099995eb755
2022-09-14 15:05:37 -03:00

31 lines
715 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "promql-cli";
version = "0.2.1";
src = fetchFromGitHub {
owner = "nalbury";
repo = pname;
rev = "v${version}";
hash = "sha256-uuoUvEBnLxopdt6u4vX6pYnuyOATwJFJo9ozQ9jhSyo=";
};
vendorHash = "sha256-OLkOyeLyBnNmijNYFrXIZ4nbOvV/65KIKjOFOVS9Yiw=";
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 ];
};
}