diff --git a/pkgs/applications/science/math/mathematica/10.nix b/pkgs/applications/science/math/mathematica/10.nix index d1397d228df0..e5ab259b8f70 100644 --- a/pkgs/applications/science/math/mathematica/10.nix +++ b/pkgs/applications/science/math/mathematica/10.nix @@ -74,7 +74,8 @@ stdenv.mkDerivation rec { + lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") (":" + lib.makeSearchPathOutput "lib" "lib64" buildInputs); - phases = "unpackPhase installPhase fixupPhase"; + dontConfigure = true; + dontBuild = true; unpackPhase = '' echo "=== Extracting makeself archive ===" diff --git a/pkgs/applications/science/math/mathematica/11.nix b/pkgs/applications/science/math/mathematica/11.nix index 50f2644a10b7..5b9460f76e06 100644 --- a/pkgs/applications/science/math/mathematica/11.nix +++ b/pkgs/applications/science/math/mathematica/11.nix @@ -75,7 +75,8 @@ stdenv.mkDerivation rec { + lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") (":" + lib.makeSearchPathOutput "lib" "lib64" buildInputs); - phases = "unpackPhase installPhase fixupPhase"; + dontConfigure = true; + dontBuild = true; unpackPhase = '' echo "=== Extracting makeself archive ===" diff --git a/pkgs/applications/science/math/mathematica/9.nix b/pkgs/applications/science/math/mathematica/9.nix index c3d74d8a0027..c2fc07c532fc 100644 --- a/pkgs/applications/science/math/mathematica/9.nix +++ b/pkgs/applications/science/math/mathematica/9.nix @@ -64,7 +64,8 @@ stdenv.mkDerivation rec { + lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") (":" + lib.makeSearchPathOutput "lib" "lib64" buildInputs); - phases = "unpackPhase installPhase fixupPhase"; + dontConfigure = true; + dontBuild = true; unpackPhase = '' echo "=== Extracting makeself archive ==="