spglib: enable Fortran support

This commit is contained in:
Henri Menke 2023-11-13 09:15:01 +01:00
parent 593869a360
commit a83d9dc773
No known key found for this signature in database
GPG key ID: FB7AD61E3D806382

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; {