Diff: https://github.com/PDB-REDO/libcifpp/compare/refs/tags/v5.1.0.1...v5.1.2 Changelog: https://github.com/PDB-REDO/libcifpp/releases/tag/refs/tags/v5.1.2
45 lines
853 B
Nix
45 lines
853 B
Nix
{ lib
|
|
, stdenv
|
|
, boost
|
|
, cmake
|
|
, fetchFromGitHub
|
|
, eigen
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libcifpp";
|
|
version = "5.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PDB-REDO";
|
|
repo = "libcifpp";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
hash = "sha256-wx5D0kNKetgc/8LFAgNxTAwni+lJb2rajsxh0AASpeY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
cmakeFlags = [
|
|
# disable network access
|
|
"-DCIFPP_DOWNLOAD_CCD=OFF"
|
|
];
|
|
|
|
buildInputs = [
|
|
boost
|
|
eigen
|
|
zlib
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Manipulate mmCIF and PDB files";
|
|
homepage = "https://github.com/PDB-REDO/libcifpp";
|
|
changelog = "https://github.com/PDB-REDO/libcifpp/releases/tag/${finalAttrs.src.rev}";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ natsukium ];
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|