159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
49 lines
1,012 B
Nix
49 lines
1,012 B
Nix
{ lib
|
|
, stdenv
|
|
, boost
|
|
, cmake
|
|
, fetchFromGitHub
|
|
, eigen
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libcifpp";
|
|
version = "7.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PDB-REDO";
|
|
repo = "libcifpp";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
hash = "sha256-/dX77KRYmTIj8jxRzQRlpG/ktqDL1jjySux/JqHnE3I=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
cmakeFlags = [
|
|
# disable network access
|
|
"-DCIFPP_DOWNLOAD_CCD=OFF"
|
|
];
|
|
|
|
buildInputs = [
|
|
boost
|
|
eigen
|
|
zlib
|
|
];
|
|
|
|
# cmake requires the existence of this directory when building dssp
|
|
postInstall = ''
|
|
mkdir -p $out/share/libcifpp
|
|
'';
|
|
|
|
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/${lib.removePrefix "refs/tags/" finalAttrs.src.rev}";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ natsukium ];
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|