lol
1{stdenv, lib, fetchurl, fetchpatch, cmake, zlib, libxml2, eigen, python, cairo, pcre, pkg-config }:
2
3stdenv.mkDerivation rec {
4 pname = "openbabel";
5 version = "2.4.1";
6
7 src = fetchurl {
8 url = "https://github.com/openbabel/openbabel/archive/openbabel-${lib.replaceStrings ["."] ["-"] version}.tar.gz";
9 sha256 = "0xm7y859ivq2cp0q08mwshfxm0jq31xkyr4x8s0j6l7khf57yk2r";
10 };
11
12 patches = [
13 # ARM / AArch64 fixes.
14 (fetchpatch {
15 url = "https://github.com/openbabel/openbabel/commit/ee11c98a655296550710db1207b294f00e168216.patch";
16 sha256 = "0wjqjrkr4pfirzzicdvlyr591vppydk572ix28jd2sagnfnf566g";
17 })
18 ];
19
20 buildInputs = [ zlib libxml2 eigen python cairo pcre ];
21
22 nativeBuildInputs = [ cmake pkg-config ];
23
24 meta = with lib; {
25 description = "A toolbox designed to speak the many languages of chemical data";
26 homepage = "http://openbabel.org";
27 platforms = platforms.all;
28 maintainers = with maintainers; [ danielbarter ];
29 license = licenses.gpl2Plus;
30 };
31}