diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/globalarrays')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/globalarrays/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/globalarrays/default.nix b/nixpkgs/pkgs/development/libraries/globalarrays/default.nix new file mode 100644 index 000000000000..5f700f73515a --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/globalarrays/default.nix @@ -0,0 +1,40 @@ +{ 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; + }; +} |