diff options
author | Anthony Cowley <acowley@gmail.com> | 2016-09-22 23:02:03 -0400 |
---|---|---|
committer | Anthony Cowley <acowley@gmail.com> | 2016-09-22 23:02:03 -0400 |
commit | 7181d20a4f0e2f2d16d349a4ae151e7814e30d63 (patch) | |
tree | 2180a86d38b478d646dae449ce4a7d6d44c06615 /pkgs/development/compilers/mlton | |
parent | cdec20ac58325af1f606a59413d5a31fc839c8d4 (diff) | |
download | nixlib-7181d20a4f0e2f2d16d349a4ae151e7814e30d63.tar nixlib-7181d20a4f0e2f2d16d349a4ae151e7814e30d63.tar.gz nixlib-7181d20a4f0e2f2d16d349a4ae151e7814e30d63.tar.bz2 nixlib-7181d20a4f0e2f2d16d349a4ae151e7814e30d63.tar.lz nixlib-7181d20a4f0e2f2d16d349a4ae151e7814e30d63.tar.xz nixlib-7181d20a4f0e2f2d16d349a4ae151e7814e30d63.tar.zst nixlib-7181d20a4f0e2f2d16d349a4ae151e7814e30d63.zip |
mlton: fix build with clang (darwin)
A minor tweak is necessary to avoid raising an error when building with clang. This gets mlton building on darwin.
Diffstat (limited to 'pkgs/development/compilers/mlton')
-rw-r--r-- | pkgs/development/compilers/mlton/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/compilers/mlton/default.nix b/pkgs/development/compilers/mlton/default.nix index 2a72387028d2..9c5ce109b86b 100644 --- a/pkgs/development/compilers/mlton/default.nix +++ b/pkgs/development/compilers/mlton/default.nix @@ -61,6 +61,8 @@ stdenv.mkDerivation rec { done substituteInPlace $(pwd)/../${usr_prefix}/bin/mlton --replace '/${usr_prefix}/lib/mlton' $(pwd)/../${usr_prefix}/lib/mlton + '' + stdenv.lib.optionalString stdenv.cc.isClang '' + sed -i "s_ patch -s -p0 <gdtoa.hide-public-fns.patch_ patch -s -p0 <gdtoa.hide-public-fns.patch\n\tsed -i 's|printf(emptyfmt|printf(\"\"|g' ./gdtoa/arithchk.c_" ./runtime/Makefile ''; preBuild = '' |