git.iko.soy/typeable/nixpkgs
on master help sign in
openmolcas: init at 20180529
commit484473b184ca087f57303be901139d01f142db56 authorMarkus Kowalewski <markus.kowalewski@gmail.com> dateThu 2 Aug 2018, 00:24 (8 years ago) parentb908b7d
2 files changed+74
pkgs/applications/science/chemistry/openmolcas/default.nix+72 pkgs/top-level/all-packages.nix+2
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/top-level/all-packages.nix+2
@@ -20278,6 +20278,8 @@ with pkgs;
2027820278
2027920279 octopus = callPackage ../applications/science/chemistry/octopus { openblas=openblasCompat; };
2028020280
20281+ openmolcas = callPackage ../applications/science/chemistry/openmolcas { };
20282+
2028120283 pymol = callPackage ../applications/science/chemistry/pymol { };
2028220284
2028320285 ### SCIENCE/GEOMETRY