prometheus-cpp: 1.1.0 -> 1.3.0

And stop overriding the generated pkg-config file.
This commit is contained in:
Tobias Mayer 2024-12-08 20:09:30 +01:00
parent 3dd3225b53
commit 73b7d880f1
No known key found for this signature in database
GPG Key ID: F8657E90819A1298
2 changed files with 9 additions and 19 deletions

View File

@ -3,6 +3,7 @@
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
civetweb,
curl,
gbenchmark,
@ -12,16 +13,19 @@
stdenv.mkDerivation (finalAttrs: {
pname = "prometheus-cpp";
version = "1.1.0";
version = "1.3.0";
src = fetchFromGitHub {
owner = "jupp0r";
repo = "prometheus-cpp";
rev = "v${finalAttrs.version}";
sha256 = "sha256-qx6oBxd0YrUyFq+7ArnKBqOwrl5X8RS9nErhRDUJ7+8=";
tag = "v${finalAttrs.version}";
hash = "sha256-XQ8N+affKVqn/hrMHWg0eN+0Op6m9ZdVNNAW0GpDAng=";
};
nativeBuildInputs = [ cmake ];
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
curl
gbenchmark
@ -33,6 +37,7 @@ stdenv.mkDerivation (finalAttrs: {
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DOVERRIDE_CXX_STANDARD_FLAGS=OFF"
"-DUSE_THIRDPARTY_LIBRARIES=OFF"
];
@ -41,11 +46,6 @@ stdenv.mkDerivation (finalAttrs: {
"dev"
];
postInstall = ''
mkdir -p $dev/lib/pkgconfig
substituteAll ${./prometheus-cpp.pc.in} $dev/lib/pkgconfig/prometheus-cpp.pc
'';
meta = {
description = "Prometheus Client Library for Modern C++";
homepage = "https://github.com/jupp0r/prometheus-cpp";

View File

@ -1,10 +0,0 @@
prefix=@out@
includedir=${prefix}/include
libdir=${prefix}/lib
Name: prometheus-cpp
Description: Prometheus Client Library for Modern C++
URL: https://github.com/jupp0r/prometheus-cpp
Version: @version@
Cflags: -isystem${includedir}
Libs: -Wl,-rpath,${libdir} -L${libdir} -lprometheus-cpp-core -lprometheus-cpp-pull -lprometheus-cpp-push