nixpkgs/pkgs/development/libraries/openbabel/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

33 lines
977 B
Nix

{stdenv, fetchurl, fetchpatch, cmake, zlib, libxml2, eigen, python, cairo, pcre, pkgconfig }:
stdenv.mkDerivation rec {
pname = "openbabel";
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;
};
}