about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libcifpp/default.nix
blob: 005705846e56ad1019d3ff90f6fa8338577bf31c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, stdenv, fetchFromGitHub, boost, cmake, zlib }:

stdenv.mkDerivation rec {
  pname = "libcifpp";
  version = "5.0.8";

  src = fetchFromGitHub {
    owner = "PDB-REDO";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-KJGcopGhCWSl+ElG3BPJjBf/kvYJowOHxto6Ci1IMco=";
  };

  nativeBuildInputs = [ cmake ];

  # disable network access
  cmakeFlags = [ "-DCIFPP_DOWNLOAD_CCD=OFF" ];

  buildInputs = [ boost zlib ];

  meta = with lib; {
    description = "Manipulate mmCIF and PDB files";
    homepage = "https://github.com/PDB-REDO/libcifpp";
    license = licenses.bsd2;
    maintainers = with maintainers; [ natsukium ];
    platforms = platforms.unix;
  };
}