nixpkgs/pkgs/development/libraries/globalarrays/default.nix
Matthew Bauer 1c8aba8334 treewide: use blas and lapack
This makes packages use lapack and blas, which can wrap different
BLAS/LAPACK implementations.

treewide: cleanup from blas/lapack changes

A few issues in the original treewide:

- can’t assume blas64 is a bool
- unused commented code
2020-04-17 16:24:09 -05:00

41 lines
1.0 KiB
Nix

{ stdenv, fetchpatch, fetchFromGitHub, autoreconfHook
, blas, gfortran, openssh, openmpi
} :
let
version = "5.7.2";
in stdenv.mkDerivation {
pname = "globalarrays";
inherit version;
src = fetchFromGitHub {
owner = "GlobalArrays";
repo = "ga";
rev = "v${version}";
sha256 = "0c1y9a5jpdw9nafzfmvjcln1xc2gklskaly0r1alm18ng9zng33i";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ openmpi blas gfortran openssh ];
preConfigure = ''
configureFlagsArray+=( "--enable-i8" \
"--with-mpi" \
"--with-mpi3" \
"--enable-eispack" \
"--enable-underscoring" \
"--with-blas8=${blas}/lib -lblas" )
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Global Arrays Programming Models";
homepage = "http://hpc.pnl.gov/globalarrays/";
maintainers = [ maintainers.markuskowa ];
license = licenses.bsd3;
platforms = platforms.linux;
};
}