diff options
author | Markus Kowalewski <markus.kowalewski@gmail.com> | 2018-08-02 00:16:11 +0200 |
---|---|---|
committer | Markus Kowalewski <markus.kowalewski@fysik.su.se> | 2018-08-02 10:18:08 +0200 |
commit | b908b7d68d17d872cd5befa30a69f0844e0d48fa (patch) | |
tree | b4477246eacaca825d8b6bc76b421e7462adb790 /pkgs/development/libraries/globalarrays | |
parent | 03e47c388aca8202ee72d2d546067cb5250bfe4b (diff) |
globalarrays: init at 5.7
Diffstat (limited to 'pkgs/development/libraries/globalarrays')
-rw-r--r-- | pkgs/development/libraries/globalarrays/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/libraries/globalarrays/default.nix b/pkgs/development/libraries/globalarrays/default.nix new file mode 100644 index 0000000000000..2da5474eb9d19 --- /dev/null +++ b/pkgs/development/libraries/globalarrays/default.nix @@ -0,0 +1,42 @@ +{ stdenv, pkgs, fetchFromGitHub, automake, autoconf, libtool +, openblas, gfortran, openssh, openmpi +} : + +let + version = "5.7"; + +in stdenv.mkDerivation { + name = "globalarrays-${version}"; + + src = fetchFromGitHub { + owner = "GlobalArrays"; + repo = "ga"; + rev = "v${version}"; + sha256 = "07i2idaas7pq3in5mdqq5ndvxln5q87nyfgk3vzw85r72c4fq5jh"; + }; + + nativeBuildInputs = [ automake autoconf libtool ]; + buildInputs = [ openmpi openblas gfortran openssh ]; + + preConfigure = '' + autoreconf -ivf + configureFlagsArray+=( "--enable-i8" \ + "--with-mpi" \ + "--with-mpi3" \ + "--enable-eispack" \ + "--enable-underscoring" \ + "--with-blas8=${openblas}/lib -lopenblas" ) + ''; + + 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; + }; +} + + |