Commit 65f0e5df authored by Markus Kowalewski's avatar Markus Kowalewski
Browse files

nwchem: fix build with scalapack

Ensure scalapack is built with same ILP64
flags as blas and lapack.

Problem was introduced here:
https://github.com/NixOS/nixpkgs/pull/460967
parent 3a3f02f6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@
}:

assert blas.isILP64 == lapack.isILP64;
assert blas.isILP64 == scalapack.isILP64;

let
  versionGA = "5.8.2"; # Fixed by nwchem
@@ -138,7 +139,7 @@ stdenv.mkDerivation rec {
    export BLAS_SIZE=${if blas.isILP64 then "8" else "4"}
    export USE_SCALAPACK="y"
    export SCALAPACK="-L${scalapack}/lib -lscalapack"
    export SCALAPACK_SIZE="4"
    export SCALAPACK_SIZE=${if scalapack.isILP64 then "8" else "4"}

    export LIBXC_INCLUDE="${lib.getDev libxc}/include"
    export LIBXC_MODDIR="${lib.getDev libxc}/include"
+1 −0
Original line number Diff line number Diff line
@@ -13388,6 +13388,7 @@ with pkgs;
  nwchem = callPackage ../applications/science/chemistry/nwchem {
    blas = blas-ilp64;
    lapack = lapack-ilp64;
    scalapack = scalapack-ilp64;
  };

  autodock-vina = callPackage ../applications/science/chemistry/autodock-vina { };