depot/third_party/nixpkgs/pkgs/development/libraries/globalarrays/default.nix
Default email 7cbac10661 Project import generated by Copybara.
GitOrigin-RevId: a371c1071161104d329f6a85d922fd92b7cbab63
2020-11-12 09:05:59 +00:00

40 lines
1 KiB
Nix

{ stdenv, fetchpatch, fetchFromGitHub, autoreconfHook
, blas, gfortran, openssh, openmpi
} :
let
version = "5.8";
in stdenv.mkDerivation {
pname = "globalarrays";
inherit version;
src = fetchFromGitHub {
owner = "GlobalArrays";
repo = "ga";
rev = "v${version}";
sha256 = "0bky91ncz6vy0011ps9prsnq9f4a5s5xwr23kkmi39xzg0417mnd";
};
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;
};
}