File tree Expand file tree Collapse file tree 1 file changed +28
-7
lines changed Expand file tree Collapse file tree 1 file changed +28
-7
lines changed Original file line number Diff line number Diff line change 308308 lib . pipe drv [
309309 (
310310 drv :
311- drv . overrideAttrs ( _ : {
312- buildEnv = pkgs . callPackage ../../python-wrapper.nix {
313- inherit ( drv . pkgs ) requiredPythonModules ;
314- python = drv ;
315- extraLibs = libraries ;
316- } ;
317- } )
311+ drv . overrideAttrs (
312+ prevAttrs :
313+ let
314+ buildEnv = pkgs . callPackage ../../python-wrapper.nix {
315+ inherit ( drv . pkgs ) requiredPythonModules ;
316+ python = drv ;
317+ extraLibs = libraries ;
318+ makeWrapperArgs = [
319+ "--prefix"
320+ "LD_LIBRARY_PATH"
321+ ":"
322+ ( lib . makeLibraryPath libraries )
323+ ]
324+ ++ lib . optionals pkgs . stdenv . isDarwin [
325+ "--prefix"
326+ "DYLD_LIBRARY_PATH"
327+ ":"
328+ ( lib . makeLibraryPath libraries )
329+ ] ;
330+ } ;
331+ in
332+ {
333+ inherit buildEnv ;
334+ passthru = prevAttrs . passthru // {
335+ inherit buildEnv ;
336+ } ;
337+ }
338+ )
318339 )
319340 appendLibraries
320341 ]
You can’t perform that action at this time.
0 commit comments