base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / libcifpp / package.nix
blobce9787c879c6cd6c3dd58a2e761172fe5fe7f7eb
1 { lib
2 , stdenv
3 , boost
4 , cmake
5 , fetchFromGitHub
6 , eigen
7 , zlib
8 }:
10 stdenv.mkDerivation (finalAttrs: {
11   pname = "libcifpp";
12   version = "7.0.7";
14   src = fetchFromGitHub {
15     owner = "PDB-REDO";
16     repo = "libcifpp";
17     rev = "refs/tags/v${finalAttrs.version}";
18     hash = "sha256-wyDdSUOVey1VKftLLRka9Fp4MT+qNEawZQ5iySl3dk8=";
19   };
21   nativeBuildInputs = [
22     cmake
23   ];
25   cmakeFlags = [
26     # disable network access
27     "-DCIFPP_DOWNLOAD_CCD=OFF"
28   ];
30   buildInputs = [
31     boost
32     eigen
33     zlib
34   ];
36   # cmake requires the existence of this directory when building dssp
37   postInstall = ''
38     mkdir -p $out/share/libcifpp
39   '';
41   meta = with lib; {
42     description = "Manipulate mmCIF and PDB files";
43     homepage = "https://github.com/PDB-REDO/libcifpp";
44     changelog = "https://github.com/PDB-REDO/libcifpp/releases/tag/${lib.removePrefix "refs/tags/" finalAttrs.src.rev}";
45     license = licenses.bsd2;
46     maintainers = with maintainers; [ natsukium ];
47     platforms = platforms.unix;
48   };