Tobias Mayer 73b7d880f1
prometheus-cpp: 1.1.0 -> 1.3.0
And stop overriding the generated pkg-config file.
2024-12-09 05:27:06 +01:00

55 lines
913 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
civetweb,
curl,
gbenchmark,
gtest,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "prometheus-cpp";
version = "1.3.0";
src = fetchFromGitHub {
owner = "jupp0r";
repo = "prometheus-cpp";
tag = "v${finalAttrs.version}";
hash = "sha256-XQ8N+affKVqn/hrMHWg0eN+0Op6m9ZdVNNAW0GpDAng=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
curl
gbenchmark
gtest
zlib
];
propagatedBuildInputs = [ civetweb ];
strictDeps = true;
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DOVERRIDE_CXX_STANDARD_FLAGS=OFF"
"-DUSE_THIRDPARTY_LIBRARIES=OFF"
];
outputs = [
"out"
"dev"
];
meta = {
description = "Prometheus Client Library for Modern C++";
homepage = "https://github.com/jupp0r/prometheus-cpp";
license = [ lib.licenses.mit ];
};
})