Commit fb24dd71 authored by Grace Dinh's avatar Grace Dinh
Browse files

scalapack: add darwin support

parent 6ea4ce11
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -38,8 +38,11 @@ stdenv.mkDerivation rec {
  checkInputs = [ openssh ];
  buildInputs = [ blas lapack ];
  propagatedBuildInputs = [ mpi ];
  hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ];

  doCheck = true;
  # xslu and xsllt tests seem to time out on x86_64-darwin.
  # this line is left so those who force installation on x86_64-darwin can still build
  doCheck = !(stdenv.isx86_64 && stdenv.isDarwin);

  preConfigure = ''
    cmakeFlagsArray+=(
@@ -73,7 +76,9 @@ stdenv.mkDerivation rec {
    homepage = "http://www.netlib.org/scalapack/";
    description = "Library of high-performance linear algebra routines for parallel distributed memory machines";
    license = licenses.bsd3;
    platforms = [ "x86_64-linux" ];
    platforms = platforms.unix;
    maintainers = with maintainers; [ costrouc markuskowa ];
    # xslu and xsllt tests fail on x86 darwin
    broken = stdenv.isDarwin && stdenv.isx86_64;
  };
}