diff --git a/pkgs/development/python-modules/ale-py/default.nix b/pkgs/development/python-modules/ale-py/default.nix index e10dd2713436..3185b3d0057f 100644 --- a/pkgs/development/python-modules/ale-py/default.nix +++ b/pkgs/development/python-modules/ale-py/default.nix @@ -43,6 +43,14 @@ buildPythonPackage (finalAttrs: { hash = "sha256-hFbreHk0i4h+JOyvDYcNX3TmwgvxNC5U0l5Xrqqz1zQ="; }; + # disable lto on darwin, cmake cannot find llvm-ar + postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' + substituteInPlace src/ale/CMakeLists.txt \ + --replace-fail \ + 'set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)' \ + 'set(CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE)' + ''; + build-system = [ cmake ninja @@ -58,14 +66,6 @@ buildPythonPackage (finalAttrs: { cudaPackages.cuda_nvcc ]; - # disable lto on darwin, cmake cannot find llvm-ar - postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' - substituteInPlace src/ale/CMakeLists.txt \ - --replace-fail \ - 'set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)' \ - 'set(CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE)' - ''; - dontUseCmakeConfigure = true; buildInputs = [ @@ -111,7 +111,6 @@ buildPythonPackage (finalAttrs: { ]; disabledTestPaths = [ - # "tests/python/test_atari_vector_xla.py" ];