1 { stdenv, lib, fetchFromGitHub, cmake, openmp }:
3 stdenv.mkDerivation rec {
5 version = "2.0.2"; # N.B: if you change this, please update: pythonPackages.spglib
7 src = fetchFromGitHub {
11 sha256 = "sha256-8Voepj35CMbboL3Dc55Gc4+OLPTTSgqVQuvNcRQsqmU=";
14 nativeBuildInputs = [ cmake ];
16 buildInputs = lib.optionals stdenv.isDarwin [ openmp ];
19 description = "C library for finding and handling crystal symmetries";
20 homepage = "https://spglib.github.io/spglib/";
21 changelog = "https://github.com/spglib/spglib/raw/v${version}/ChangeLog";
22 license = licenses.bsd3;
23 maintainers = [ maintainers.markuskowa ];
24 platforms = platforms.all;