From 19c359ce2a2aa45a6443a5a5067a6cdbd7a9779b Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Sun, 8 Feb 2015 03:04:41 -0500 Subject: [PATCH] substituteInPlace doesn't seem to work properly on this bash, so use sed instead --- pkgs/development/compilers/llvm/3.5/clang.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/llvm/3.5/clang.nix b/pkgs/development/compilers/llvm/3.5/clang.nix index e4cfd83d010..a95b77c08b6 100644 --- a/pkgs/development/compilers/llvm/3.5/clang.nix +++ b/pkgs/development/compilers/llvm/3.5/clang.nix @@ -22,8 +22,8 @@ stdenv.mkDerivation { patches = [ ./clang-purity.patch ]; postPatch = '' - substituteInPlace lib/Driver/Tools.cpp --replace "Args.hasArg(options::OPT_nostdlibinc)" "true" - substituteInPlace lib/Driver/ToolChains.cpp --replace "DriverArgs.hasArg(options::OPT_nostdlibinc)" "true" + sed -i -e 's/Args.hasArg(options::OPT_nostdlibinc)/true/' lib/Driver/Tools.cpp + sed -i -e 's/DriverArgs.hasArg(options::OPT_nostdlibinc)/true/' lib/Driver/ToolChains.cpp ''; # Clang expects to find LLVMgold in its own prefix