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

27 lines
621 B
Nix
Raw Normal View History

2021-01-25 11:54:30 +01:00
{ stdenv, lib, fetchFromGitHub, cmake } :
stdenv.mkDerivation rec {
pname = "spglib";
2021-02-01 13:15:02 +01:00
version = "1.16.1";
2021-01-25 11:54:30 +01:00
src = fetchFromGitHub {
owner = "atztogo";
repo = "spglib";
rev = "v${version}";
2021-02-01 13:15:02 +01:00
sha256 = "1sk59nnar9npka4mdcfh4154ja46i35y4gbq892kwqidzyfs80in";
2021-01-25 11:54:30 +01: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 06:22:10 +01:00
platforms = platforms.all;
2021-01-25 11:54:30 +01:00
};
}