python3Packages.duckdb: link duckdb.src instead of substituting dir name

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
This commit is contained in:
Michael Daniels
2026-01-01 09:47:54 -05:00
parent a24d0820d0
commit c607503a74

View File

@@ -37,10 +37,9 @@ buildPythonPackage rec {
};
postPatch = ''
# patch cmake to ignore absence of git submodule copy of duckdb
substituteInPlace cmake/duckdb_loader.cmake \
--replace-fail '"''${CMAKE_CURRENT_SOURCE_DIR}/external/duckdb"' \
'"${duckdb.src}"'
# The build depends on a duckdb git submodule
rm -r external/duckdb
ln -s ${duckdb.src} external/duckdb
# replace pybind11[global] with pybind11
substituteInPlace pyproject.toml \