aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/prometheus-cpp
diff options
context:
space:
mode:
authorFrederik Rietdijk <freddyrietdijk@fridh.nl>2019-03-07 09:52:56 +0100
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2019-03-07 09:53:36 +0100
commitbca5d89ccf1ef9f78f587838b8428fdcd47012b7 (patch)
tree95dda106ac0bcce31ff0332fa06f61307080cbf2 /pkgs/development/libraries/prometheus-cpp
parent15e8eebb6dffc03a4ca61db5118766abcb5e7836 (diff)
prometheus-cpp: init at 0.6.0
Diffstat (limited to 'pkgs/development/libraries/prometheus-cpp')
-rw-r--r--pkgs/development/libraries/prometheus-cpp/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/libraries/prometheus-cpp/default.nix b/pkgs/development/libraries/prometheus-cpp/default.nix
new file mode 100644
index 000000000000..23c8257ac8fe
--- /dev/null
+++ b/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 ];
+ };
+
+}