2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2018-09-14 06:08:48 +00:00
|
|
|
, gfortran, mpi
|
|
|
|
}:
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2018-09-14 06:08:48 +00:00
|
|
|
version = "1.10";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "DL_POLY_Classic";
|
2018-09-14 06:08:48 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://ccpforge.cse.rl.ac.uk/gf/download/frsrelease/574/8924/dl_class_1.10.tar.gz";
|
|
|
|
sha256 = "1r76zvln3bwycxlmqday0sqzv5j260y7mdh66as2aqny6jzd5ld7";
|
|
|
|
};
|
|
|
|
|
2021-09-03 11:33:32 +00:00
|
|
|
nativeBuildInputs = [ gfortran ];
|
|
|
|
|
|
|
|
buildInputs = [ mpi ];
|
2018-09-14 06:08:48 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
cd source
|
|
|
|
cp -v ../build/MakePAR Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make dlpoly
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -v ../execute/DLPOLY.X $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.ccp5.ac.uk/DL_POLY_C";
|
2018-09-14 06:08:48 +00:00
|
|
|
description = "DL_POLY Classic is a general purpose molecular dynamics simulation package";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|