18 stdenv.mkDerivation (finalAttrs: {
22 src = fetchFromGitHub {
25 rev = finalAttrs.version;
26 hash = "sha256-gKfsuznAhq29sOw78gpQ7TNZ6xCgmDBad3TcqFzoWVc=";
30 # https://github.com/OSGeo/PROJ/pull/3252
31 ./only-add-curl-for-static-builds.patch
57 "-DUSE_EXTERNAL_GTEST=ON"
58 "-DRUN_NETWORK_DEPENDENT_TESTS=OFF"
59 "-DNLOHMANN_JSON_ORIGIN=external"
60 "-DEXE_SQLITE3=${buildPackages.sqlite}/bin/sqlite3"
63 # GCC 13: error: 'int64_t' in namespace 'std' does not name a type
69 libPathEnvVar = if stdenv.hostPlatform.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH";
74 export ${libPathEnvVar}=$PWD/lib
80 python = python3.pkgs.pyproj;
81 proj = callPackage ./tests.nix { proj = finalAttrs.finalPackage; };
85 changelog = "https://github.com/OSGeo/PROJ/blob/${finalAttrs.src.rev}/NEWS";
86 description = "Cartographic Projections Library";
87 homepage = "https://proj.org/";
88 license = licenses.mit;
89 maintainers = with maintainers; teams.geospatial.members ++ [ dotlambda ];
90 platforms = platforms.unix;