at 16.09-beta 26 lines 692 B view raw
1{ stdenv, lib, buildGoPackage, fetchFromGitHub }: 2 3buildGoPackage rec { 4 name = "prometheus_cli-${version}"; 5 version = "0.3.0"; 6 rev = version; 7 8 goPackagePath = "github.com/prometheus/prometheus_cli"; 9 10 src = fetchFromGitHub { 11 inherit rev; 12 owner = "prometheus"; 13 repo = "prometheus_cli"; 14 sha256 = "1qxqrcbd0d4mrjrgqz882jh7069nn5gz1b84rq7d7z1f1dqhczxn"; 15 }; 16 17 goDeps = ./cli_deps.json; 18 19 meta = with stdenv.lib; { 20 description = "Command line tool for querying the Prometheus HTTP API"; 21 homepage = https://github.com/prometheus/prometheus_cli; 22 license = licenses.asl20; 23 maintainers = with maintainers; [ benley ]; 24 platforms = platforms.unix; 25 }; 26}