Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
prometheus-cpp: init at 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Mar 7, 2019
1 parent 15e8eeb commit bca5d89
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
41 changes: 41 additions & 0 deletions pkgs/development/libraries/prometheus-cpp/default.nix
@@ -0,0 +1,41 @@
{ stdenv
, fetchFromGitHub
, cmake
, gbenchmark
, gtest
, civetweb
, zlib
, curl
}:

stdenv.mkDerivation rec {
pname = "prometheus-cpp";
version = "0.6.0";

src = fetchFromGitHub {
owner = "jupp0r";
repo = pname;
rev = "v${version}";
sha256 = "sha256:1a0gpfmk0z9wgsbzvx823aqbs7w836l0j0rnsxl9ifwgdxnxbl6m";
};

nativeBuildInputs = [ cmake ];
buildInputs = [ gbenchmark civetweb gtest zlib curl ];

strictDeps = true;

cmakeFlags = [
"-DUSE_THIRDPARTY_LIBRARIES=OFF"
"-DCIVETWEB_INCLUDE_DIR=${civetweb.dev}/include"
"-DCIVETWEB_CXX_LIBRARY=${civetweb}/lib/libcivetweb${stdenv.targetPlatform.extensions.sharedLibrary}"
];

NIX_LDFLAGS = [ "-ldl" ];

meta = {
description = "Prometheus Client Library for Modern C++";
homepage = https://github.com/jupp0r/prometheus-cpp;
license = [ stdenv.lib.licenses.mit ];
};

}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -14013,6 +14013,8 @@ in
prometheus-varnish-exporter = callPackage ../servers/monitoring/prometheus/varnish-exporter.nix { };
prometheus-jmx-httpserver = callPackage ../servers/monitoring/prometheus/jmx-httpserver.nix { };

prometheus-cpp = callPackage ../development/libraries/prometheus-cpp { };

psqlodbc = callPackage ../development/libraries/psqlodbc { };

pure-ftpd = callPackage ../servers/ftp/pure-ftpd { };
Expand Down

0 comments on commit bca5d89

Please sign in to comment.