Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchurl, 5 buildDunePackage, 6 ocaml, 7 ounit2, 8}: 9 10buildDunePackage rec { 11 pname = "dtoa"; 12 version = "0.3.3"; 13 14 src = fetchurl { 15 url = "https://github.com/flowtype/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz"; 16 hash = "sha256-2PRgjJ6Ssp4l6jHzv1/MqzlomQlJkKLVnRXG6KPJ7j4="; 17 }; 18 19 checkInputs = [ ounit2 ]; 20 21 doCheck = lib.versionAtLeast ocaml.version "4.08"; 22 23 hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow"; 24 25 meta = with lib; { 26 homepage = "https://github.com/flowtype/ocaml-dtoa"; 27 description = "Converts OCaml floats into strings (doubles to ascii, \"d to a\"), using the efficient Grisu3 algorithm"; 28 license = licenses.mit; 29 maintainers = [ maintainers.eqyiel ]; 30 }; 31}