From ac0a7e8e053c405ae151ab62097f6588daabf531 Mon Sep 17 00:00:00 2001 From: squalus Date: Fri, 29 Apr 2022 19:13:14 -0700 Subject: [PATCH] proj: support cross compile Add a cmakeFlag to point to a sqlite3 binary that can be run at build time --- pkgs/development/libraries/proj/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/proj/default.nix b/pkgs/development/libraries/proj/default.nix index a8e42fb6fb17..a5a19dc9db2e 100644 --- a/pkgs/development/libraries/proj/default.nix +++ b/pkgs/development/libraries/proj/default.nix @@ -3,6 +3,7 @@ , fetchFromGitHub , cmake , pkg-config +, buildPackages , sqlite , libtiff , curl @@ -33,6 +34,7 @@ stdenv.mkDerivation rec { "-DUSE_EXTERNAL_GTEST=ON" "-DRUN_NETWORK_DEPENDENT_TESTS=OFF" "-DNLOHMANN_JSON_ORIGIN=external" + "-DEXE_SQLITE3=${buildPackages.sqlite}/bin/sqlite3" ]; preCheck =