2018-11-05 11:21:46 +01:00
|
|
|
{ stdenv, fetchurl, buildDunePackage }:
|
2018-01-01 10:43:27 +01:00
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
buildDunePackage rec {
|
2018-01-01 10:43:27 +01:00
|
|
|
pname = "dtoa";
|
2019-11-27 10:21:00 +01:00
|
|
|
version = "0.3.2";
|
2018-01-01 10:43:27 +01:00
|
|
|
|
2019-02-22 18:00:22 +01:00
|
|
|
minimumOCamlVersion = "4.02";
|
2018-11-05 11:21:46 +01:00
|
|
|
|
2018-01-01 10:43:27 +01:00
|
|
|
src = fetchurl {
|
2019-11-27 10:21:00 +01:00
|
|
|
url = "https://github.com/flowtype/ocaml-${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
|
|
|
|
sha256 = "0zkhn0rdq82g6gamsv6nkx6i44s8104nh6jg5xydazl9jl1704xn";
|
2018-01-01 10:43:27 +01:00
|
|
|
};
|
|
|
|
|
2018-01-06 13:39:22 +01:00
|
|
|
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "strictoverflow";
|
2018-01-01 10:43:27 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/flowtype/ocaml-dtoa";
|
2018-01-01 10:43:27 +01:00
|
|
|
description = "Converts OCaml floats into strings (doubles to ascii, \"d to a\"), using the efficient Grisu3 algorithm.";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.eqyiel ];
|
|
|
|
};
|
|
|
|
}
|