2023-04-29 16:46:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, boost, cmake, zlib }:
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libcifpp";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "5.0.8";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PDB-REDO";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-KJGcopGhCWSl+ElG3BPJjBf/kvYJowOHxto6Ci1IMco=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
# disable network access
|
|
|
|
cmakeFlags = [ "-DCIFPP_DOWNLOAD_CCD=OFF" ];
|
|
|
|
|
|
|
|
buildInputs = [ boost zlib ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|