Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
919 B · 56 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ 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 = [ gbenchmark gtest ]; propagatedBuildInputs = [ civetweb curl zlib ]; 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 ]; };})