Skip to content

Commit da7ef6b

Browse files
committed
build: set LD_LIBRARY_PATH in preCheck instead of everywhere in the package build
1 parent 578213e commit da7ef6b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

poetry-overrides.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,16 @@ in
8383

8484
adbc-driver-manager = self.buildPythonPackage {
8585
pname = "adbc-driver-manager";
86-
inherit (pkgs.adbc-sqlite) version src;
86+
inherit (pkgs.adbc-driver-manager) version src;
8787
sourceRoot = "source/python/adbc_driver_manager";
8888
format = "setuptools";
8989

9090
nativeBuildInputs = [ self.cython ];
9191
propagatedBuildInputs = [ self.pyarrow ];
9292

93-
LD_LIBRARY_PATH = "${pkgs.adbc-sqlite}/lib";
93+
preCheck = ''
94+
export LD_LIBRARY_PATH="${pkgs.adbc-sqlite}/lib"
95+
'';
9496

9597
checkInputs = [ self.pytest ];
9698
checkPhase = ''

0 commit comments

Comments
 (0)