2023-05-12 22:02:03 +02:00
|
|
|
{ stdenv, lib, fetchurl, buildDunePackage, ocaml, ounit2 }:
|
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";
|
2023-05-12 22:02:03 +02:00
|
|
|
version = "0.3.3";
|
2018-11-05 11:21:46 +01:00
|
|
|
|
2018-01-01 10:43:27 +01:00
|
|
|
src = fetchurl {
|
2023-05-12 22:02:03 +02:00
|
|
|
url = "https://github.com/flowtype/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz";
|
|
|
|
hash = "sha256-2PRgjJ6Ssp4l6jHzv1/MqzlomQlJkKLVnRXG6KPJ7j4=";
|
2018-01-01 10:43:27 +01:00
|
|
|
};
|
|
|
|
|
2023-05-12 22:02:03 +02:00
|
|
|
checkInputs = [ ounit2 ];
|
2022-03-01 16:42:22 +01:00
|
|
|
|
2023-05-12 22:02:03 +02:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2022-03-01 16:42:22 +01:00
|
|
|
|
2021-04-26 12:01:28 +02:00
|
|
|
hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow";
|
2018-01-01 10:43:27 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with 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 ];
|
|
|
|
};
|
|
|
|
}
|