21 src = fetchFromGitHub {
25 hash = "sha256-mAuU2uF8d+aHvCmotgIrBi/pUp1jkP6G0f98M76zjOw=";
28 nativeBuildInputs = [ cmake ];
30 propagatedBuildInputs = [ curl ];
32 cmakeFlags = [ "-DCPR_USE_SYSTEM_CURL=ON" ];
35 # Linking with stdc++fs is no longer necessary.
36 sed -i '/stdc++fs/d' include/CMakeLists.txt
40 substituteInPlace "$out/lib/cmake/cpr/cprTargets.cmake" \
41 --replace "_IMPORT_PREFIX \"$out\"" \
42 "_IMPORT_PREFIX \"$dev\""
46 description = "C++ wrapper around libcurl";
47 homepage = "https://docs.libcpr.org/";
48 license = licenses.mit;
49 maintainers = with maintainers; [ rycee ];
50 platforms = platforms.all;