Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Florian Franzen
w3fpkgs
Commits
be60fb80
Commit
be60fb80
authored
Jun 21, 2021
by
Florian Franzen
Browse files
deps: add prometheus-cpp
parent
83053452
Changes
3
Hide whitespace changes
Inline
Side-by-side
deps/prometheus-cpp.nix
0 → 100644
View file @
be60fb80
{
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"
];
}
hosts/kagome/default.nix
View file @
be60fb80
...
...
@@ -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
=
[
...
...
overlay.nix
View file @
be60fb80
...
...
@@ -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
{};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment