From 7181d20a4f0e2f2d16d349a4ae151e7814e30d63 Mon Sep 17 00:00:00 2001 From: Anthony Cowley Date: Thu, 22 Sep 2016 23:02:03 -0400 Subject: 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. --- pkgs/development/compilers/mlton/default.nix | 2 ++ 1 file changed, 2 insertions(+) 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