Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 26 lines 781 B view raw
1{ stdenv, lib, fetchFromGitHub, cmake, openmp }: 2 3stdenv.mkDerivation rec { 4 pname = "spglib"; 5 version = "2.0.2"; # N.B: if you change this, please update: pythonPackages.spglib 6 7 src = fetchFromGitHub { 8 owner = "spglib"; 9 repo = "spglib"; 10 rev = "v${version}"; 11 sha256 = "sha256-8Voepj35CMbboL3Dc55Gc4+OLPTTSgqVQuvNcRQsqmU="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 16 buildInputs = lib.optionals stdenv.isDarwin [ openmp ]; 17 18 meta = with lib; { 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; 25 }; 26}