mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
pkgs/development/python-modules: stdenv.lib -> lib
This commit is contained in:
parent
2f34b4b883
commit
a4bbfba80d
211 changed files with 525 additions and 546 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue