571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
44 lines
1019 B
Nix
44 lines
1019 B
Nix
{ lib, stdenv, fetchurl
|
|
, gfortran, mpi
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
version = "1.10";
|
|
pname = "DL_POLY_Classic";
|
|
|
|
src = fetchurl {
|
|
url = "https://ccpforge.cse.rl.ac.uk/gf/download/frsrelease/574/8924/dl_class_1.10.tar.gz";
|
|
sha256 = "1r76zvln3bwycxlmqday0sqzv5j260y7mdh66as2aqny6jzd5ld7";
|
|
};
|
|
|
|
nativeBuildInputs = [ gfortran ];
|
|
|
|
buildInputs = [ mpi ];
|
|
|
|
configurePhase = ''
|
|
cd source
|
|
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
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -v ../execute/DLPOLY.X $out/bin
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.ccp5.ac.uk/DL_POLY_C";
|
|
description = "DL_POLY Classic is a general purpose molecular dynamics simulation package";
|
|
mainProgram = "DLPOLY.X";
|
|
license = licenses.bsdOriginal;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|