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
|
|
|
|
'';
|
|
|
|
|
2023-12-10 13:52:11 +00:00
|
|
|
# https://gitlab.com/DL_POLY_Classic/dl_poly/-/blob/master/README
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-fallow-argument-mismatch";
|
|
|
|
|
2018-09-14 06:08:48 +00:00
|
|
|
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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "DLPOLY.X";
|
2018-09-14 06:08:48 +00:00
|
|
|
license = licenses.bsdOriginal;
|
2023-12-10 13:52:11 +00:00
|
|
|
platforms = platforms.unix;
|
2018-09-14 06:08:48 +00:00
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|