Merge pull request #267172 from hmenke/spglib
spglib: enable Fortran support
This commit is contained in:
commit
605b466982
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