2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, boost
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, eigen
|
|
|
|
, zlib
|
|
|
|
}:
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-08-12 12:06:08 +00:00
|
|
|
pname = "libcifpp";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "5.1.2";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PDB-REDO";
|
2023-07-15 17:15:38 +00:00
|
|
|
repo = "libcifpp";
|
|
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-wx5D0kNKetgc/8LFAgNxTAwni+lJb2rajsxh0AASpeY=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
2023-04-29 16:46:19 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
# disable network access
|
|
|
|
"-DCIFPP_DOWNLOAD_CCD=OFF"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
eigen
|
|
|
|
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";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/PDB-REDO/libcifpp/releases/tag/${finalAttrs.src.rev}";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ natsukium ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
})
|