nixpkgs/pkgs/development/libraries/openbabel/default.nix

35 lines
1.1 KiB
Nix
Raw Normal View History

{stdenv, fetchurl, fetchpatch, cmake, zlib, libxml2, eigen, python, cairo, pcre, pkgconfig }:
stdenv.mkDerivation rec {
pname = "openbabel";
2016-12-28 19:06:14 +00:00
version = "2.4.1";
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";
};
patches = [
# ARM / AArch64 fixes.
(fetchpatch {
url = "https://github.com/openbabel/openbabel/commit/ee11c98a655296550710db1207b294f00e168216.patch";
sha256 = "0wjqjrkr4pfirzzicdvlyr591vppydk572ix28jd2sagnfnf566g";
})
];
# 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 ];
nativeBuildInputs = [ cmake pkgconfig ];
meta = {
description = "A toolbox designed to speak the many languages of chemical data";
homepage = "http://openbabel.org";
platforms = stdenv.lib.platforms.all;
maintainers = [ ];
license = stdenv.lib.licenses.gpl2Plus;
};
}