mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
bf995e3641
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
25 lines
759 B
Nix
25 lines
759 B
Nix
{ stdenv, lib, fetchurl, buildDunePackage, ocaml, ounit2 }:
|
|
|
|
buildDunePackage rec {
|
|
pname = "dtoa";
|
|
version = "0.3.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/flowtype/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz";
|
|
hash = "sha256-2PRgjJ6Ssp4l6jHzv1/MqzlomQlJkKLVnRXG6KPJ7j4=";
|
|
};
|
|
|
|
checkInputs = [ ounit2 ];
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
|
|
|
hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow";
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
};
|
|
}
|