From cf247dcce02cfd51ee04988e4ac35e7c8ec79a81 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Mon, 19 Dec 2011 13:40:33 +0000 Subject: [PATCH] Try to fix tarball svn path=/nixpkgs/trunk/; revision=30968 --- pkgs/development/compilers/llvm/clang.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/llvm/clang.nix b/pkgs/development/compilers/llvm/clang.nix index 0ee91a2cd0d..8450dbe1771 100644 --- a/pkgs/development/compilers/llvm/clang.nix +++ b/pkgs/development/compilers/llvm/clang.nix @@ -7,10 +7,10 @@ stdenv.mkDerivation { buildInputs = [ perl llvm groff cmake ]; - patches = stdenv.lib.optionals stdenv.isLinux + patches = stdenv.lib.optionals (stdenv.gcc.libc != null) [ ./clang-include-paths.patch ./clang-ld-flags.patch ]; - postPatch = stdenv.lib.optionalString stdenv.isLinux '' + postPatch = stdenv.lib.optionalString (stdenv.gcc.libc != null) '' sed -i -e 's,C_INCLUDE_PATH,"${stdenv.gcc.libc}/include/",' \ -e 's,CPP_HOST,"'$(${stdenv.gcc}/bin/cc -dumpmachine)'",' \ -e 's,CPP_INCLUDE_PATH,"${stdenv.gcc.gcc}/include/c++/${stdenv.gcc.gcc.version}",' \