diff --git a/pkgs/development/python-modules/torch/bin.nix b/pkgs/development/python-modules/torch/bin.nix index ec8ec52b2430..3259f1fca185 100644 --- a/pkgs/development/python-modules/torch/bin.nix +++ b/pkgs/development/python-modules/torch/bin.nix @@ -38,10 +38,8 @@ in buildPythonPackage { src = fetchurl srcs."${stdenv.system}-${pyVerNoDot}" or unsupported; - nativeBuildInputs = [ + nativeBuildInputs = lib.optionals stdenv.isLinux [ addOpenGLRunpath - patchelf - ] ++ lib.optionals stdenv.isLinux [ autoPatchelfHook cudaPackages.autoAddOpenGLRunpathHook ];