ocaml-packages: add zarith 1.2.1

Signed-off-by: Austin Seipp <aseipp@pobox.com>

+31
+29
pkgs/development/ocaml-modules/zarith/default.nix
··· 1 + { stdenv, fetchurl, ocaml, findlib, pkgconfig, gmp, perl }: 2 + 3 + let 4 + ocaml_version = (builtins.parseDrvName ocaml.name).version; 5 + in 6 + stdenv.mkDerivation rec { 7 + name = "zarith-${version}"; 8 + version = "1.2.1"; 9 + 10 + src = fetchurl { 11 + url = "http://forge.ocamlcore.org/frs/download.php/1199/${name}.tgz"; 12 + sha256 = "0i21bsx41br0jgw8xmlpnky5zamzqkpbykrq0z53z7ar77602s4i"; 13 + }; 14 + 15 + buildInputs = [ ocaml findlib pkgconfig gmp perl ]; 16 + 17 + configurePhase = '' 18 + ./configure -installdir $out/lib/ocaml/${ocaml_version}/site-lib 19 + ''; 20 + preInstall = "mkdir -p $out/lib/ocaml/${ocaml_version}/site-lib"; 21 + 22 + meta = { 23 + description = "fast, arbitrary precision OCaml integers"; 24 + homepage = "http://forge.ocamlcore.org/projects/zarith"; 25 + license = stdenv.lib.licenses.lgpl2; 26 + platforms = ocaml.meta.platforms; 27 + maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; 28 + }; 29 + }
+2
pkgs/top-level/all-packages.nix
··· 3168 3168 opam_1_0_0 = callPackage ../development/tools/ocaml/opam/1.0.0.nix { }; 3169 3169 opam_1_1 = callPackage ../development/tools/ocaml/opam/1.1.nix { }; 3170 3170 opam = opam_1_1; 3171 + 3172 + zarith = callPackage ../development/ocaml-modules/zarith { }; 3171 3173 }; 3172 3174 3173 3175 ocamlPackages = recurseIntoAttrs ocamlPackages_4_01_0;