diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/globalarrays')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/globalarrays/default.nix | 42 |
1 files changed, 42 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..2da5474eb9d1 --- /dev/null +++ b/nixpkgs/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; + }; +} + + |