e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
45 lines
866 B
Nix
45 lines
866 B
Nix
{ lib
|
|
, stdenv
|
|
, boost
|
|
, cmake
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, eigen
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libcifpp";
|
|
version = "6.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PDB-REDO";
|
|
repo = "libcifpp";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
hash = "sha256-MddldYpvZHgAb/ndtWKdAf0TzKIYJalaywmSRZCtBmc=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|