2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv, lib, fetchurl, buildDunePackage }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "dtoa";
|
|
|
|
version = "0.3.2";
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
minimumOCamlVersion = "4.02";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/flowtype/ocaml-${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
|
|
|
|
sha256 = "0zkhn0rdq82g6gamsv6nkx6i44s8104nh6jg5xydazl9jl1704xn";
|
|
|
|
};
|
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/flowtype/ocaml-dtoa";
|
|
|
|
description = "Converts OCaml floats into strings (doubles to ascii, \"d to a\"), using the efficient Grisu3 algorithm.";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.eqyiel ];
|
|
|
|
};
|
|
|
|
}
|