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 @@ ...@@ -16,6 +16,7 @@
, cpp-libp2p , cpp-libp2p
, tsl_hat_trie , tsl_hat_trie
, boost_di , boost_di
, prometheus-cpp
, schnorrkel_crust , schnorrkel_crust
}: }:
...@@ -49,6 +50,7 @@ stdenv.mkDerivation rec { ...@@ -49,6 +50,7 @@ stdenv.mkDerivation rec {
jsonrpc-lean jsonrpc-lean
tsl_hat_trie tsl_hat_trie
boost_di boost_di
prometheus-cpp
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
......
...@@ -49,6 +49,8 @@ let ...@@ -49,6 +49,8 @@ let
boost_di = callPackage ./deps/boost_di.nix {}; boost_di = callPackage ./deps/boost_di.nix {};
tsl_hat_trie = callPackage ./deps/tsl_hat_trie.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 # Newer then stable, often forks with additional cmake support
binaryen_cmake = callPackage ./deps/binaryen.nix {}; binaryen_cmake = callPackage ./deps/binaryen.nix {};
gtest_cmake = callPackage ./deps/googletest.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