spglib: enable Fortran support
This commit is contained in:
parent
593869a360
commit
a83d9dc773
1 changed files with 4 additions and 2 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue