nixpkgs/pkgs/development/libraries/spglib/default.nix

27 lines
621 B
Nix
Raw Normal View History

2021-01-25 10:54:30 +00:00
{ stdenv, lib, fetchFromGitHub, cmake } :
stdenv.mkDerivation rec {
pname = "spglib";
2021-08-11 21:31:28 +00:00
version = "1.16.2";
2021-01-25 10:54:30 +00:00
src = fetchFromGitHub {
owner = "atztogo";
repo = "spglib";
rev = "v${version}";
2021-08-11 21:31:28 +00:00
sha256 = "1sbrk26xyvlhqxxv9cq2ycxwbiafgmh7lf221377zpqq8q3iavd7";
2021-01-25 10:54:30 +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-12 05:22:10 +00:00
platforms = platforms.all;
2021-01-25 10:54:30 +00:00
};
}