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