dl-poly-classic-mpi: fix build with gcc 11+

This commit is contained in:
Weijia Wang 2023-12-10 14:52:11 +01:00
parent 64891e361b
commit bf4d34ba62
2 changed files with 5 additions and 2 deletions

View File

@ -20,6 +20,9 @@ stdenv.mkDerivation {
cp -v ../build/MakePAR Makefile
'';
# https://gitlab.com/DL_POLY_Classic/dl_poly/-/blob/master/README
env.NIX_CFLAGS_COMPILE = "-fallow-argument-mismatch";
buildPhase = ''
make dlpoly
'';
@ -33,7 +36,7 @@ stdenv.mkDerivation {
homepage = "https://www.ccp5.ac.uk/DL_POLY_C";
description = "DL_POLY Classic is a general purpose molecular dynamics simulation package";
license = licenses.bsdOriginal;
platforms = [ "x86_64-linux" ];
platforms = platforms.unix;
maintainers = [ maintainers.costrouc ];
};
}

View File

@ -39412,7 +39412,7 @@ with pkgs;
### SCIENCE/MOLECULAR-DYNAMICS
dl-poly-classic-mpi = callPackage ../applications/science/molecular-dynamics/dl-poly-classic { stdenv = gcc10StdenvCompat; };
dl-poly-classic-mpi = callPackage ../applications/science/molecular-dynamics/dl-poly-classic { };
lammps = callPackage ../applications/science/molecular-dynamics/lammps {
fftw = fftw;