Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, boost, cmake, zlib }: 2 3stdenv.mkDerivation rec { 4 pname = "libcifpp"; 5 version = "5.0.8"; 6 7 src = fetchFromGitHub { 8 owner = "PDB-REDO"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-KJGcopGhCWSl+ElG3BPJjBf/kvYJowOHxto6Ci1IMco="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 16 # disable network access 17 cmakeFlags = [ "-DCIFPP_DOWNLOAD_CCD=OFF" ]; 18 19 buildInputs = [ boost zlib ]; 20 21 meta = with lib; { 22 description = "Manipulate mmCIF and PDB files"; 23 homepage = "https://github.com/PDB-REDO/libcifpp"; 24 license = licenses.bsd2; 25 maintainers = with maintainers; [ natsukium ]; 26 platforms = platforms.unix; 27 }; 28}