0
0
Fork 0
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:
Pavol Rusnak 2021-01-24 01:29:22 +01:00
parent 2f34b4b883
commit a4bbfba80d
No known key found for this signature in database
GPG key ID: 91F3B339B9A02A3D
211 changed files with 525 additions and 546 deletions

View file

@ -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..."

View file

@ -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