nixpkgs/pkgs/by-name/li/libmbd/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
842 B
Nix
Raw Normal View History

2023-11-29 10:41:57 +01:00
{ stdenv
, fetchFromGitHub
, lib
, cmake
, mpi
, blas
, lapack
, scalapack
, gfortran
} :
assert !blas.isILP64;
assert !lapack.isILP64;
stdenv.mkDerivation rec {
pname = "libMBD";
version = "0.12.7";
src = fetchFromGitHub {
owner = "libmbd";
repo = pname;
rev = version;
hash = "sha256-39cvOUTAuuWLGOLdapR5trmCttCnijOWvPhSBTeTxTA=";
};
preConfigure = ''
cat > cmake/libMBDVersionTag.cmake << EOF
set(VERSION_TAG "${version}")
EOF
'';
nativeBuildInputs = [ cmake gfortran ];
buildInputs = [ blas lapack scalapack ];
propagatedBuildInputs = [ mpi ];
meta = with lib; {
2023-12-05 10:41:04 +01:00
description = "Many-body dispersion library";
2023-11-29 10:41:57 +01:00
homepage = "https://github.com/libmbd/libmbd";
license = licenses.mpl20;
platforms = platforms.linux;
maintainers = [ maintainers.sheepforce ];
};
}