depot/third_party/nixpkgs/pkgs/development/libraries/spglib/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

30 lines
878 B
Nix

{ stdenv, lib, fetchFromGitHub, cmake, gfortran, gtest, openmp }:
stdenv.mkDerivation rec {
pname = "spglib";
version = "2.4.0"; # N.B: if you change this, please update: pythonPackages.spglib
src = fetchFromGitHub {
owner = "spglib";
repo = "spglib";
rev = "v${version}";
hash = "sha256-Y6WkN3Q1q4h2TqrlKSKFmFxQZQWKmleRHV74PmYyw2A=";
};
nativeBuildInputs = [ cmake gfortran gtest ];
buildInputs = lib.optionals stdenv.isDarwin [ openmp ];
cmakeFlags = [ "-DSPGLIB_WITH_Fortran=On" ];
doCheck = true;
meta = with lib; {
description = "C library for finding and handling crystal symmetries";
homepage = "https://spglib.github.io/spglib/";
changelog = "https://github.com/spglib/spglib/raw/v${version}/ChangeLog";
license = licenses.bsd3;
maintainers = [ maintainers.markuskowa ];
platforms = platforms.all;
};
}