diff options
author | Austin Seipp <aseipp@pobox.com> | 2014-05-01 02:26:35 -0500 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2014-05-01 02:30:28 -0500 |
commit | 02351691ba90ac0decb17378596dba44db1afe1a (patch) | |
tree | fc5853ccf515d079cac61ca12e2e3c53e92fb4d4 /pkgs/development/ocaml-modules/zarith | |
parent | 2d7fe682129aacda8b633417167a414a79a95bf2 (diff) | |
download | nixlib-02351691ba90ac0decb17378596dba44db1afe1a.tar nixlib-02351691ba90ac0decb17378596dba44db1afe1a.tar.gz nixlib-02351691ba90ac0decb17378596dba44db1afe1a.tar.bz2 nixlib-02351691ba90ac0decb17378596dba44db1afe1a.tar.lz nixlib-02351691ba90ac0decb17378596dba44db1afe1a.tar.xz nixlib-02351691ba90ac0decb17378596dba44db1afe1a.tar.zst nixlib-02351691ba90ac0decb17378596dba44db1afe1a.zip |
ocaml-packages: add zarith 1.2.1
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'pkgs/development/ocaml-modules/zarith')
-rw-r--r-- | pkgs/development/ocaml-modules/zarith/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/zarith/default.nix b/pkgs/development/ocaml-modules/zarith/default.nix new file mode 100644 index 000000000000..a05ff43a3df5 --- /dev/null +++ b/pkgs/development/ocaml-modules/zarith/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, ocaml, findlib, pkgconfig, gmp, perl }: + +let + ocaml_version = (builtins.parseDrvName ocaml.name).version; +in +stdenv.mkDerivation rec { + name = "zarith-${version}"; + version = "1.2.1"; + + src = fetchurl { + url = "http://forge.ocamlcore.org/frs/download.php/1199/${name}.tgz"; + sha256 = "0i21bsx41br0jgw8xmlpnky5zamzqkpbykrq0z53z7ar77602s4i"; + }; + + buildInputs = [ ocaml findlib pkgconfig gmp perl ]; + + configurePhase = '' + ./configure -installdir $out/lib/ocaml/${ocaml_version}/site-lib + ''; + preInstall = "mkdir -p $out/lib/ocaml/${ocaml_version}/site-lib"; + + meta = { + description = "fast, arbitrary precision OCaml integers"; + homepage = "http://forge.ocamlcore.org/projects/zarith"; + license = stdenv.lib.licenses.lgpl2; + platforms = ocaml.meta.platforms; + maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; + }; +} |