pkgs/development/python-modules: stdenv.lib -> lib
This commit is contained in:
@@ -52,7 +52,7 @@ in buildPythonPackage {
|
||||
'';
|
||||
|
||||
postFixup = let
|
||||
rpath = stdenv.lib.makeLibraryPath [ stdenv.cc.cc.lib nvidia_x11 ];
|
||||
rpath = lib.makeLibraryPath [ stdenv.cc.cc.lib nvidia_x11 ];
|
||||
in ''
|
||||
find $out/${python.sitePackages}/torch/lib -type f \( -name '*.so' -or -name '*.so.*' \) | while read lib; do
|
||||
echo "setting rpath for $lib..."
|
||||
|
||||
@@ -265,7 +265,7 @@ in buildPythonPackage rec {
|
||||
cp -r $out/${python.sitePackages}/torch/lib $lib/lib
|
||||
'';
|
||||
|
||||
postFixup = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
postFixup = lib.optionalString stdenv.isDarwin ''
|
||||
for f in $(ls $lib/lib/*.dylib); do
|
||||
install_name_tool -id $lib/lib/$(basename $f) $f || true
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user