7 staticOnly ? stdenv.hostPlatform.isStatic,
22 src = fetchFromGitHub {
26 hash = "sha256-RIRqkb2Id3cyz35LM4bYftMv1NGyDyFP4fL4L5mHV8A=";
29 nativeBuildInputs = [ cmake ];
31 propagatedBuildInputs = [ curl ];
34 "-DBUILD_SHARED_LIBS=${if staticOnly then "OFF" else "ON"}"
35 "-DCPR_USE_SYSTEM_CURL=ON"
39 # Linking with stdc++fs is no longer necessary.
40 sed -i '/stdc++fs/d' include/CMakeLists.txt
44 substituteInPlace "$out/lib/cmake/cpr/cprTargets.cmake" \
45 --replace "_IMPORT_PREFIX \"$out\"" \
46 "_IMPORT_PREFIX \"$dev\""
50 description = "C++ wrapper around libcurl";
51 homepage = "https://docs.libcpr.org/";
52 license = licenses.mit;
53 maintainers = with maintainers; [ rycee ];
54 platforms = platforms.all;