proj: don't add cURL dependency to CMake config

This commit is contained in:
Robert Schütz 2022-11-09 18:46:30 -08:00
parent 82f891e229
commit 3885b6dd38

View File

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, pkg-config
, buildPackages
@ -23,6 +24,15 @@ stdenv.mkDerivation rec {
hash = "sha256-Upsp72RorV+5PFPHOK3zCJgVTRZ6fSVVFRope8Bp8/M=";
};
patches = [
# https://github.com/OSGeo/PROJ/pull/3252
(fetchpatch {
name = "only-add-find_dependencyCURL-for-static-builds.patch";
url = "https://github.com/OSGeo/PROJ/commit/11f4597bbb7069bd5d4391597808703bd96df849.patch";
hash = "sha256-4w5Cu2m5VJZr6E2dUVRyWJdED2TyS8cI8G20EwfQ4u0=";
})
];
outputs = [ "out" "dev" ];
nativeBuildInputs = [ cmake pkg-config ];