2022-05-06 06:20:00 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, openmp }:
|
2021-01-25 11:54:30 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "spglib";
|
2022-05-06 06:20:00 +02:00
|
|
|
version = "1.16.5"; # N.B: if you change this, please update: pythonPackages.spglib
|
2021-01-25 11:54:30 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-05-06 06:20:00 +02:00
|
|
|
owner = "spglib";
|
2021-01-25 11:54:30 +01:00
|
|
|
repo = "spglib";
|
|
|
|
rev = "v${version}";
|
2022-05-06 06:20:00 +02:00
|
|
|
sha256 = "sha256-BbqyL7WJ/jpOls1MmY7VNCN+OlF6u4uz/pZjMAqk87w=";
|
2021-01-25 11:54:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2022-05-06 06:20:00 +02:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ openmp ];
|
|
|
|
|
2021-01-25 11:54:30 +01:00
|
|
|
checkTarget = "check";
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "C library for finding and handling crystal symmetries";
|
2022-05-06 06:20:00 +02:00
|
|
|
homepage = "https://spglib.github.io/spglib/";
|
|
|
|
changelog = "https://github.com/spglib/spglib/raw/v${version}/ChangeLog";
|
2021-01-25 11:54:30 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.markuskowa ];
|
2021-03-12 06:22:10 +01:00
|
|
|
platforms = platforms.all;
|
2021-01-25 11:54:30 +01:00
|
|
|
};
|
|
|
|
}
|