Merge pull request #170647 from markuskowa/fix-scalapack

scalapack: fix build with gcc-10
This commit is contained in:
markuskowa 2022-04-27 22:34:30 +02:00 committed by GitHub
commit 4dfaf3893c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, openssh
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, openssh
, mpi, blas, lapack
} :
@ -17,6 +17,13 @@ stdenv.mkDerivation rec {
passthru = { inherit (blas) isILP64; };
# upstream patch, remove with next release
patches = [ (fetchpatch {
name = "gcc-10";
url = "https://github.com/Reference-ScaLAPACK/scalapack/commit/a0f76fc0c1c16646875b454b7d6f8d9d17726b5a.patch";
sha256 = "0civn149ikghakic30bynqg1bal097hr7i12cm4kq3ssrhq073bp";
})];
# Required to activate ILP64.
# See https://github.com/Reference-ScaLAPACK/scalapack/pull/19
postPatch = lib.optionalString passthru.isILP64 ''