14 stdenv.mkDerivation rec {
18 src = fetchFromGitHub {
22 sha256 = "0mymvfvs8xggl4axvlj7kc1ksd9g94kaz6w1vdv0x2y5mqk93gx9";
27 # https://github.com/OSGeo/PROJ/issues/2557
28 name = "gie_self_tests-fail.diff"; # included in >= 8.0.1
29 url = "https://github.com/OSGeo/PROJ/commit/6f1a3c4648bf06862dca0b3725cbb3b7ee0284e3.diff";
30 sha256 = "0gapny0a9c3r0x9szjgn86sspjrrf4vwbija77b17w6ci5cq4pdf";
32 ./tests-sqlite-3.39.patch
35 postPatch = lib.optionalString (version == "7.2.1") ''
36 substituteInPlace CMakeLists.txt \
37 --replace "MAJOR 7 MINOR 2 PATCH 0" "MAJOR 7 MINOR 2 PATCH 1"
56 nativeCheckInputs = [ gtest ];
59 "-DUSE_EXTERNAL_GTEST=ON"
62 # GCC 13: error: 'int64_t' in namespace 'std' does not name a type
69 description = "Cartographic Projections Library";
70 homepage = "https://proj4.org";
71 license = licenses.mit;
72 platforms = platforms.unix;
73 maintainers = with maintainers; [ dotlambda ];