From 5045795197715cdc737051c3f0122657e1e6e5f5 Mon Sep 17 00:00:00 2001 From: Kevin Mehall Date: Wed, 3 Nov 2021 23:39:43 +0000 Subject: [PATCH] python3Packages.pytorch: Avoid duplicating libraries between $lib and $out --- pkgs/development/python-modules/pytorch/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pytorch/default.nix b/pkgs/development/python-modules/pytorch/default.nix index 0d42c8e6dcc1..4c7ad30a4a99 100644 --- a/pkgs/development/python-modules/pytorch/default.nix +++ b/pkgs/development/python-modules/pytorch/default.nix @@ -276,7 +276,8 @@ in buildPythonPackage rec { --replace \''${_IMPORT_PREFIX}/lib "$lib/lib" mkdir $lib - cp -r $out/${python.sitePackages}/torch/lib $lib/lib + mv $out/${python.sitePackages}/torch/lib $lib/lib + ln -s $lib/lib $out/${python.sitePackages}/torch/lib ''; postFixup = lib.optionalString stdenv.isDarwin ''