Commit be60fb80 authored by Florian Franzen's avatar Florian Franzen
Browse files

deps: add prometheus-cpp

parent 83053452
{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "prometheus-cpp";
version = "0.12.3";
src = fetchFromGitHub {
owner = "jupp0r";
repo = "prometheus-cpp";
rev = "v${version}";
sha256 = "0lzfyphk8g8h3f9yv0zpi3jlcb391m1hxv0h0rkrgm3sykmwiaz0";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DENABLE_TESTING=OFF"
"-DUSE_THIRDPARTY_LIBRARIES=OFF"
"-DOVERRIDE_CXX_STANDARD_FLAGS=OFF"
"-DENABLE_PULL=OFF"
"-DENABLE_PUSH=OFF"
"-DENABLE_COMPRESSION=OFF"
];
}
......@@ -16,6 +16,7 @@
, cpp-libp2p
, tsl_hat_trie
, boost_di
, prometheus-cpp
, schnorrkel_crust
}:
......@@ -49,6 +50,7 @@ stdenv.mkDerivation rec {
jsonrpc-lean
tsl_hat_trie
boost_di
prometheus-cpp
];
propagatedBuildInputs = [
......
......@@ -49,6 +49,8 @@ let
boost_di = callPackage ./deps/boost_di.nix {};
tsl_hat_trie = callPackage ./deps/tsl_hat_trie.nix {};
prometheus-cpp = callPackage ./deps/prometheus-cpp.nix {};
# Newer then stable, often forks with additional cmake support
binaryen_cmake = callPackage ./deps/binaryen.nix {};
gtest_cmake = callPackage ./deps/googletest.nix {};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment