mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
33 lines
987 B
Nix
33 lines
987 B
Nix
{stdenv, fetchurl, fetchpatch, cmake, zlib, libxml2, eigen, python, cairo, pcre, pkgconfig }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "openbabel-${version}";
|
|
version = "2.4.1";
|
|
|
|
src = fetchurl {
|
|
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
|
|
buildInputs = [ zlib libxml2 eigen python cairo pcre ];
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
meta = {
|
|
platforms = stdenv.lib.platforms.all;
|
|
maintainers = [ ];
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
};
|
|
}
|