openmolcas: init at 20180529

wip/yesman
Markus Kowalewski 6 years ago committed by Markus Kowalewski
parent b908b7d68d
commit 484473b184
No known key found for this signature in database
GPG Key ID: 502A248E3FB4FF48
  1. 72
      pkgs/applications/science/chemistry/openmolcas/default.nix
  2. 2
      pkgs/top-level/all-packages.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;
};
}

@ -20278,6 +20278,8 @@ with pkgs;
octopus = callPackage ../applications/science/chemistry/octopus { openblas=openblasCompat; };
openmolcas = callPackage ../applications/science/chemistry/openmolcas { };
pymol = callPackage ../applications/science/chemistry/pymol { };
### SCIENCE/GEOMETRY

Loading…
Cancel
Save