clang builds on darwin now

Also, get rid of the clang bootstrap, there's no need for it

svn path=/nixpkgs/trunk/; revision=30973
This commit is contained in:
Shea Levy
2011-12-19 23:58:57 +00:00
parent 66b4a5a009
commit ec305ac161
2 changed files with 9 additions and 13 deletions

View File

@@ -1,11 +1,11 @@
{ stdenv, fetchurl, perl, groff, llvm, cmake }:
{ stdenv, fetchurl, perl, groff, llvm, cmake, darwinInstallNameToolUtility }:
let version = "3.0"; in
stdenv.mkDerivation {
name = "clang-${version}";
buildInputs = [ perl llvm groff cmake ];
buildInputs = [ perl llvm groff cmake ] ++ stdenv.lib.optional stdenv.isDarwin darwinInstallNameToolUtility;
patches = stdenv.lib.optionals (stdenv.gcc.libc != null)
[ ./clang-include-paths.patch ./clang-ld-flags.patch ];
@@ -33,7 +33,7 @@ stdenv.mkDerivation {
description = "A C language family frontend for LLVM";
license = "BSD";
maintainers = with stdenv.lib.maintainers; [viric shlevy];
platforms = with stdenv.lib.platforms; linux;
platforms = with stdenv.lib.platforms; all;
};
}