Files
nixpkgs/pkgs/by-name/li/libcifpp/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

49 lines
978 B
Nix

{
lib,
stdenv,
boost,
cmake,
fetchFromGitHub,
eigen,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libcifpp";
version = "8.0.1";
src = fetchFromGitHub {
owner = "PDB-REDO";
repo = "libcifpp";
tag = "v${finalAttrs.version}";
hash = "sha256-cfyou+R0VrAfYM8ez5myZkDKO5VfB9WAQF+amy3oRzU=";
};
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 = {
description = "Manipulate mmCIF and PDB files";
homepage = "https://github.com/PDB-REDO/libcifpp";
changelog = "https://github.com/PDB-REDO/libcifpp/releases/tag/v${finalAttrs.version}";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ natsukium ];
platforms = lib.platforms.unix;
};
})