2018-12-09 15:25:16 -08:00
|
|
|
{stdenv, fetchurl, fetchpatch, cmake, zlib, libxml2, eigen, python, cairo, pcre, pkgconfig }:
|
2009-03-10 07:41:50 -07:00
|
|
|
|
2011-08-15 11:05:31 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2016-12-28 11:06:14 -08:00
|
|
|
name = "openbabel-${version}";
|
|
|
|
version = "2.4.1";
|
2012-01-14 10:02:54 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-12-28 11:06:14 -08:00
|
|
|
url = "https://github.com/openbabel/openbabel/archive/openbabel-${stdenv.lib.replaceStrings ["."] ["-"] version}.tar.gz";
|
|
|
|
sha256 = "0xm7y859ivq2cp0q08mwshfxm0jq31xkyr4x8s0j6l7khf57yk2r";
|
2009-03-10 07:41:50 -07:00
|
|
|
};
|
2012-01-14 10:02:54 -08:00
|
|
|
|
2018-12-09 15:25:16 -08:00
|
|
|
patches = [
|
|
|
|
# ARM / AArch64 fixes.
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://github.com/openbabel/openbabel/commit/ee11c98a655296550710db1207b294f00e168216.patch;
|
|
|
|
sha256 = "0wjqjrkr4pfirzzicdvlyr591vppydk572ix28jd2sagnfnf566g";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2009-04-21 16:18:09 -07:00
|
|
|
# TODO : perl & python bindings;
|
|
|
|
# TODO : wxGTK: I have no time to compile
|
|
|
|
# TODO : separate lib and apps
|
2016-12-28 11:06:14 -08:00
|
|
|
buildInputs = [ zlib libxml2 eigen python cairo pcre ];
|
2011-08-15 11:05:31 -07:00
|
|
|
|
2012-12-28 10:20:09 -08:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2011-08-15 11:05:31 -07:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
2017-03-27 10:11:17 -07:00
|
|
|
maintainers = [ ];
|
2018-08-09 03:35:16 -07:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2011-08-15 11:05:31 -07:00
|
|
|
};
|
2007-11-11 08:15:29 -08:00
|
|
|
}
|