diff options
author | xeji <36407913+xeji@users.noreply.github.com> | 2018-08-02 10:32:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-02 10:32:04 +0200 |
commit | 9e52696649ba845d0f993bb8b6454b4362267485 (patch) | |
tree | d26d44b788d622052bd38345f966a6badfa2ab36 /pkgs/applications | |
parent | 219970b494d553c73b22723ff993df00c513ea71 (diff) | |
parent | 484473b184ca087f57303be901139d01f142db56 (diff) | |
download | nixlib-9e52696649ba845d0f993bb8b6454b4362267485.tar nixlib-9e52696649ba845d0f993bb8b6454b4362267485.tar.gz nixlib-9e52696649ba845d0f993bb8b6454b4362267485.tar.bz2 nixlib-9e52696649ba845d0f993bb8b6454b4362267485.tar.lz nixlib-9e52696649ba845d0f993bb8b6454b4362267485.tar.xz nixlib-9e52696649ba845d0f993bb8b6454b4362267485.tar.zst nixlib-9e52696649ba845d0f993bb8b6454b4362267485.zip |
Merge pull request #44325 from markuskowa/molcas
openmolcas: init at 20180529
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/science/chemistry/openmolcas/default.nix | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/pkgs/applications/science/chemistry/openmolcas/default.nix b/pkgs/applications/science/chemistry/openmolcas/default.nix new file mode 100644 index 000000000000..5e1628a4fba7 --- /dev/null +++ b/pkgs/applications/science/chemistry/openmolcas/default.nix @@ -0,0 +1,72 @@ +{ stdenv, pkgs, fetchFromGitLab, cmake, gfortran, perl +, openblas, hdf5-cpp, python3, texlive +, armadillo, openmpi, globalarrays, openssh +, makeWrapper +} : + +let + version = "20180529"; + gitLabRev = "b6b9ceffccae0dd7f14c099468334fee0b1071fc"; + + python = python3.withPackages (ps : with ps; [ six pyparsing ]); + +in stdenv.mkDerivation { + name = "openmolcas-${version}"; + + src = fetchFromGitLab { + owner = "Molcas"; + repo = "OpenMolcas"; + rev = gitLabRev; + sha256 = "1wbjjdv07lg1x4kdnf28anyrjgy33gdgrd5d7zi1c97nz7vhdjaz"; + }; + + nativeBuildInputs = [ perl cmake texlive.combined.scheme-minimal makeWrapper ]; + buildInputs = [ + gfortran + openblas + hdf5-cpp + python + armadillo + openmpi + globalarrays + openssh + ]; + + enableParallelBuilding = true; + + cmakeFlags = [ + "-DOPENMP=ON" + "-DGA=ON" + "-DMPI=ON" + "-DLINALG=OpenBLAS" + "-DTOOLS=ON" + "-DHDF5=ON" + "-DFDE=ON" + "-DOPENBLASROOT=${openblas}" + ]; + + GAROOT=globalarrays; + + postConfigure = '' + # The Makefile will install pymolcas during the build grrr. + mkdir -p $out/bin + export PATH=$PATH:$out/bin + ''; + + postFixup = '' + # Wrong store path in shebang (no Python pkgs), force re-patching + sed -i "1s:/.*:/usr/bin/env python:" $out/bin/pymolcas + patchShebangs $out/bin + + wrapProgram $out/bin/pymolcas --set MOLCAS $out + ''; + + meta = with stdenv.lib; { + description = "Advanced quantum chemistry software package"; + homepage = https://gitlab.com/Molcas/OpenMolcas; + maintainers = [ maintainers.markuskowa ]; + license = licenses.lgpl21; + platforms = platforms.linux; + }; +} + |