Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
920 B
Nix
43 lines
920 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
gfortran,
|
|
gtest,
|
|
openmp,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "spglib";
|
|
version = "2.6.0"; # N.B: if you change this, please update: pythonPackages.spglib
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "spglib";
|
|
repo = "spglib";
|
|
rev = "v${version}";
|
|
hash = "sha256-rmQYFFfpyUhT9pfQZk1fN5tZWTg40wwtszhPhiZpXs4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
gfortran
|
|
gtest
|
|
];
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ openmp ];
|
|
|
|
cmakeFlags = [ "-DSPGLIB_WITH_Fortran=On" ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "C library for finding and handling crystal symmetries";
|
|
homepage = "https://spglib.github.io/spglib/";
|
|
changelog = "https://github.com/spglib/spglib/raw/v${version}/ChangeLog";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.markuskowa ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|