Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
909 B · 46 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ lib, stdenv, fetchFromGitHub, cmake, gbenchmark, gtest, civetweb, zlib, curl}:
stdenv.mkDerivation rec { pname = "prometheus-cpp"; version = "1.1.0";
src = fetchFromGitHub { owner = "jupp0r"; repo = pname; rev = "v${version}"; sha256 = "sha256-qx6oBxd0YrUyFq+7ArnKBqOwrl5X8RS9nErhRDUJ7+8="; };
nativeBuildInputs = [ cmake ]; buildInputs = [ gbenchmark gtest zlib curl ]; propagatedBuildInputs = [ civetweb ]; strictDeps = true;
cmakeFlags = [ "-DUSE_THIRDPARTY_LIBRARIES=OFF" "-DBUILD_SHARED_LIBS=ON" ];
outputs = [ "out" "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"; license = [ lib.licenses.mit ]; };
}