nixpkgs/pkgs/development/libraries/libcifpp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
866 B
Nix
Raw Normal View History

{ lib
, stdenv
, boost
, cmake
, fetchFromGitHub
, fetchpatch
, eigen
, zlib
}:
2022-07-19 03:14:28 +00:00
stdenv.mkDerivation (finalAttrs: {
2022-07-19 03:14:28 +00:00
pname = "libcifpp";
2024-02-17 20:42:00 +00:00
version = "7.0.0";
2022-07-19 03:14:28 +00:00
src = fetchFromGitHub {
owner = "PDB-REDO";
repo = "libcifpp";
rev = "refs/tags/v${finalAttrs.version}";
2024-02-17 20:42:00 +00:00
hash = "sha256-nOKekN3re2Gg7h2RAJ6yRZMfEEk65N2zvb9NafRCVbE=";
2022-07-19 03:14:28 +00:00
};
nativeBuildInputs = [
cmake
];
2022-07-19 03:14:28 +00:00
cmakeFlags = [
# disable network access
"-DCIFPP_DOWNLOAD_CCD=OFF"
];
buildInputs = [
boost
eigen
zlib
];
2022-07-19 03:14:28 +00:00
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}";
2022-07-19 03:14:28 +00:00
license = licenses.bsd2;
maintainers = with maintainers; [ natsukium ];
platforms = platforms.unix;
};
})