Merge pull request #267172 from hmenke/spglib

spglib: enable Fortran support
This commit is contained in:
markuskowa 2023-11-13 10:39:10 +01:00 committed by GitHub
commit 605b466982
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, cmake, gtest, openmp }:
{ stdenv, lib, fetchFromGitHub, cmake, gfortran, gtest, openmp }:
stdenv.mkDerivation rec {
pname = "spglib";
@ -11,10 +11,12 @@ stdenv.mkDerivation rec {
hash = "sha256-EL3jkzyurc8fnzk9kAdTaEtLfLlLtmaVDFwChfCDOrQ=";
};
nativeBuildInputs = [ cmake gtest ];
nativeBuildInputs = [ cmake gfortran gtest ];
buildInputs = lib.optionals stdenv.isDarwin [ openmp ];
cmakeFlags = [ "-DSPGLIB_WITH_Fortran=On" ];
doCheck = true;
meta = with lib; {