lol
at 23.11-beta 31 lines 715 B view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "promql-cli"; 8 version = "0.3.0"; 9 10 src = fetchFromGitHub { 11 owner = "nalbury"; 12 repo = pname; 13 rev = "v${version}"; 14 hash = "sha256-EV63fdG+GF+kVLH2TxHPhRcUU5xBvkW5bhHC1lEoj84="; 15 }; 16 17 vendorHash = "sha256-jhNll04xGaxS6NJTh4spSW9zPrff8jk5OEQiRevPQwU="; 18 19 ldflags = [ "-s" "-w" ]; 20 21 postInstall = '' 22 mv -v $out/bin/promql-cli $out/bin/promql 23 ''; 24 25 meta = with lib; { 26 description = "Command-line tool to query a Prometheus server with PromQL and visualize the output"; 27 homepage = "https://github.com/nalbury/promql-cli"; 28 license = licenses.asl20; 29 maintainers = with maintainers; [ arikgrahl ]; 30 }; 31}