diff options
author | John Ericson <git@JohnEricson.me> | 2021-01-21 16:02:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 16:02:20 -0500 |
commit | e61a96d70af29ace8cd78d01af66fbfa8218c018 (patch) | |
tree | 6c720ce98a83b70d794d766c7ab60494b238ca68 | |
parent | 29954335b7d9933c7846f01ff5b6d07c9fc39263 (diff) | |
parent | 451ffe6ad07f473a8c96b752b92c822cf48a41a3 (diff) |
Merge pull request #110312 from obsidiansystems/prometheus-cpp-pkgconfig
[Draft] prometheus-cpp: add pkgconfig data
-rw-r--r-- | pkgs/development/libraries/prometheus-cpp/default.nix | 5 | ||||
-rw-r--r-- | pkgs/development/libraries/prometheus-cpp/prometheus-cpp.pc.in | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/development/libraries/prometheus-cpp/default.nix b/pkgs/development/libraries/prometheus-cpp/default.nix index 5377d2b96d00..3714e2c89e6b 100644 --- a/pkgs/development/libraries/prometheus-cpp/default.nix +++ b/pkgs/development/libraries/prometheus-cpp/default.nix @@ -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"; diff --git a/pkgs/development/libraries/prometheus-cpp/prometheus-cpp.pc.in b/pkgs/development/libraries/prometheus-cpp/prometheus-cpp.pc.in new file mode 100644 index 000000000000..c373f4153b55 --- /dev/null +++ b/pkgs/development/libraries/prometheus-cpp/prometheus-cpp.pc.in @@ -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 |