Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libcifpp / default.nix
blob08c35ec94099e87402bf022be6d6f060a7377a26
1 { lib
2 , stdenv
3 , boost
4 , cmake
5 , fetchFromGitHub
6 , fetchpatch
7 , eigen
8 , zlib
9 }:
11 stdenv.mkDerivation (finalAttrs: {
12   pname = "libcifpp";
13   version = "5.2.4";
15   src = fetchFromGitHub {
16     owner = "PDB-REDO";
17     repo = "libcifpp";
18     rev = "refs/tags/v${finalAttrs.version}";
19     hash = "sha256-AAEk9gDxtlNDEG8B4HmOJ5Nd+GyWibT+yuMccylU8iQ=";
20   };
22   nativeBuildInputs = [
23     cmake
24   ];
26   cmakeFlags = [
27     # disable network access
28     "-DCIFPP_DOWNLOAD_CCD=OFF"
29   ];
31   buildInputs = [
32     boost
33     eigen
34     zlib
35   ];
37   meta = with lib; {
38     description = "Manipulate mmCIF and PDB files";
39     homepage = "https://github.com/PDB-REDO/libcifpp";
40     changelog = "https://github.com/PDB-REDO/libcifpp/releases/tag/${finalAttrs.src.rev}";
41     license = licenses.bsd2;
42     maintainers = with maintainers; [ natsukium ];
43     platforms = platforms.unix;
44   };