2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake } :
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "spglib";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "1.16.3";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "atztogo";
|
|
|
|
repo = "spglib";
|
|
|
|
rev = "v${version}";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-sM6+RBAVc2aJYlWatdD4nYZkFnaTFVjBzd/VDSSA+kk=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
checkTarget = "check";
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "C library for finding and handling crystal symmetries";
|
|
|
|
homepage = "https://atztogo.github.io/spglib/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.markuskowa ];
|
2021-03-15 08:37:03 +00:00
|
|
|
platforms = platforms.all;
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|