git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #44325 from markuskowa/molcas

openmolcas: init at 20180529

commit9e52696649ba845d0f993bb8b6454b4362267485 authorxeji <36407913+xeji@users.noreply.github.com> dateThu 2 Aug 2018, 10:32 (8 years ago) parent219970b484473b
3 files changed+118
pkgs/applications/science/chemistry/openmolcas/default.nix+72 pkgs/development/libraries/globalarrays/default.nix+42 pkgs/top-level/all-packages.nix+4
pkgs/applications/science/chemistry/openmolcas/default.nixnew file+72
@@ -0,0 +1,72 @@
1+{ stdenv, pkgs, fetchFromGitLab, cmake, gfortran, perl
2+, openblas, hdf5-cpp, python3, texlive
3+, armadillo, openmpi, globalarrays, openssh
4+, makeWrapper
5+} :
6+
7+let
8+ version = "20180529";
9+ gitLabRev = "b6b9ceffccae0dd7f14c099468334fee0b1071fc";
10+
11+ python = python3.withPackages (ps : with ps; [ six pyparsing ]);
12+
13+in stdenv.mkDerivation {
14+ name = "openmolcas-${version}";
15+
16+ src = fetchFromGitLab {
17+ owner = "Molcas";
18+ repo = "OpenMolcas";
19+ rev = gitLabRev;
20+ sha256 = "1wbjjdv07lg1x4kdnf28anyrjgy33gdgrd5d7zi1c97nz7vhdjaz";
21+ };
22+
23+ nativeBuildInputs = [ perl cmake texlive.combined.scheme-minimal makeWrapper ];
24+ buildInputs = [
25+ gfortran
26+ openblas
27+ hdf5-cpp
28+ python
29+ armadillo
30+ openmpi
31+ globalarrays
32+ openssh
33+ ];
34+
35+ enableParallelBuilding = true;
36+
37+ cmakeFlags = [
38+ "-DOPENMP=ON"
39+ "-DGA=ON"
40+ "-DMPI=ON"
41+ "-DLINALG=OpenBLAS"
42+ "-DTOOLS=ON"
43+ "-DHDF5=ON"
44+ "-DFDE=ON"
45+ "-DOPENBLASROOT=${openblas}"
46+ ];
47+
48+ GAROOT=globalarrays;
49+
50+ postConfigure = ''
51+ # The Makefile will install pymolcas during the build grrr.
52+ mkdir -p $out/bin
53+ export PATH=$PATH:$out/bin
54+ '';
55+
56+ postFixup = ''
57+ # Wrong store path in shebang (no Python pkgs), force re-patching
58+ sed -i "1s:/.*:/usr/bin/env python:" $out/bin/pymolcas
59+ patchShebangs $out/bin
60+
61+ wrapProgram $out/bin/pymolcas --set MOLCAS $out
62+ '';
63+
64+ meta = with stdenv.lib; {
65+ description = "Advanced quantum chemistry software package";
66+ homepage = https://gitlab.com/Molcas/OpenMolcas;
67+ maintainers = [ maintainers.markuskowa ];
68+ license = licenses.lgpl21;
69+ platforms = platforms.linux;
70+ };
71+}
72+
pkgs/development/libraries/globalarrays/default.nixnew file+42
@@ -0,0 +1,42 @@
1+{ stdenv, pkgs, fetchFromGitHub, automake, autoconf, libtool
2+, openblas, gfortran, openssh, openmpi
3+} :
4+
5+let
6+ version = "5.7";
7+
8+in stdenv.mkDerivation {
9+ name = "globalarrays-${version}";
10+
11+ src = fetchFromGitHub {
12+ owner = "GlobalArrays";
13+ repo = "ga";
14+ rev = "v${version}";
15+ sha256 = "07i2idaas7pq3in5mdqq5ndvxln5q87nyfgk3vzw85r72c4fq5jh";
16+ };
17+
18+ nativeBuildInputs = [ automake autoconf libtool ];
19+ buildInputs = [ openmpi openblas gfortran openssh ];
20+
21+ preConfigure = ''
22+ autoreconf -ivf
23+ configureFlagsArray+=( "--enable-i8" \
24+ "--with-mpi" \
25+ "--with-mpi3" \
26+ "--enable-eispack" \
27+ "--enable-underscoring" \
28+ "--with-blas8=${openblas}/lib -lopenblas" )
29+ '';
30+
31+ enableParallelBuilding = true;
32+
33+ meta = with stdenv.lib; {
34+ description = "Global Arrays Programming Models";
35+ homepage = http://hpc.pnl.gov/globalarrays/;
36+ maintainers = [ maintainers.markuskowa ];
37+ license = licenses.bsd3;
38+ platforms = platforms.linux;
39+ };
40+}
41+
42+
pkgs/top-level/all-packages.nix+4
@@ -1324,6 +1324,8 @@ with pkgs;
13241324
13251325 glide = callPackage ../development/tools/glide { };
13261326
1327+ globalarrays = callPackage ../development/libraries/globalarrays { };
1328+
13271329 glock = callPackage ../development/tools/glock { };
13281330
13291331 glslviewer = callPackage ../development/tools/glslviewer {
@@ -20320,6 +20322,8 @@ with pkgs;
2032020322
2032120323 octopus = callPackage ../applications/science/chemistry/octopus { openblas=openblasCompat; };
2032220324
20325+ openmolcas = callPackage ../applications/science/chemistry/openmolcas { };
20326+
2032320327 pymol = callPackage ../applications/science/chemistry/pymol { };
2032420328
2032520329 ### SCIENCE/GEOMETRY