mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
Merge pull request #110312 from obsidiansystems/prometheus-cpp-pkgconfig
[Draft] prometheus-cpp: add pkgconfig data
This commit is contained in:
commit
e61a96d70a
@ -33,6 +33,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
NIX_LDFLAGS = "-ldl";
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/lib/pkgconfig
|
||||
substituteAll ${./prometheus-cpp.pc.in} $out/lib/pkgconfig/prometheus-cpp.pc
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Prometheus Client Library for Modern C++";
|
||||
homepage = "https://github.com/jupp0r/prometheus-cpp";
|
||||
|
@ -0,0 +1,10 @@
|
||||
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
|
Loading…
Reference in New Issue
Block a user