ocaml-modules/dtoa: disable hardening (strictoverflow) on darwin (#33443)

* ocaml-modules/dtoa: disable hardening (strictoverflow) on darwin

This prevents a compile-time error on macOS:

clang-4.0: error: argument unused during compilation: '-fno-strict-overflow'
  [-Werror,-Wunused-command-line-argument]

* ocaml-modules/dtoa: remove unnecessary createFindLibDestdir

* ocaml-modules/dtoa: remove ounit from build inputs
This commit is contained in:
Ruben Maher 2018-01-06 23:09:22 +10:30 committed by Vincent Laporte
parent 6474e3bc83
commit 8c859b4cc9

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ocaml, findlib, jbuilder, ounit }:
{ stdenv, fetchurl, ocaml, findlib, jbuilder }:
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01";
@ -14,13 +14,13 @@ stdenv.mkDerivation rec {
unpackCmd = "tar xjf $src";
buildInputs = [ ocaml findlib jbuilder ounit ];
buildInputs = [ ocaml findlib jbuilder ];
buildPhase = "jbuilder build -p dtoa";
inherit (jbuilder) installPhase;
createFindLibDestdir = true;
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "strictoverflow";
meta = with stdenv.lib; {
homepage = https://github.com/flowtype/ocaml-dtoa;