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:
parent
6474e3bc83
commit
8c859b4cc9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user