1 {stdenv, lib, fetchFromGitHub, fetchpatch, cmake, zlib, libxml2, eigen, python3, cairo, pcre, pkg-config }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = "openbabel-${lib.replaceStrings ["."] ["-"] version}";
11 sha256 = "sha256-+pXsWMzex7rB1mm6dnTHzAcyw9jImgx1OZuLeCvbeJ0=";
15 # ARM / AArch64 fixes.
17 url = "https://github.com/openbabel/openbabel/commit/ee11c98a655296550710db1207b294f00e168216.patch";
18 sha256 = "0wjqjrkr4pfirzzicdvlyr591vppydk572ix28jd2sagnfnf566g";
22 buildInputs = [ zlib libxml2 eigen python3 cairo pcre ];
24 nativeBuildInputs = [ cmake pkg-config ];
27 description = "A toolbox designed to speak the many languages of chemical data";
28 homepage = "http://openbabel.org";
29 platforms = platforms.all;
30 maintainers = with maintainers; [ danielbarter ];
31 license = licenses.gpl2Plus;