2011-10-19 22:57:18 +02:00
|
|
|
{ stdenv, fetchurl, perl, groff }:
|
2008-03-17 12:18:21 +01:00
|
|
|
|
2011-10-18 18:37:28 +02:00
|
|
|
let version = "2.9"; in
|
|
|
|
|
2011-10-19 22:57:18 +02:00
|
|
|
stdenv.mkDerivation {
|
2011-10-18 18:37:28 +02:00
|
|
|
name = "llvm-${version}";
|
|
|
|
|
2011-10-19 19:11:26 +02:00
|
|
|
CC = if stdenv.gcc ? clang then "clang" else "gcc";
|
|
|
|
|
|
|
|
CXX = if stdenv.gcc ? clang then "clang++" else "g++";
|
|
|
|
|
2008-03-17 12:18:21 +01:00
|
|
|
src = fetchurl {
|
2011-10-18 18:37:28 +02:00
|
|
|
url = "http://llvm.org/releases/${version}/llvm-${version}.tgz";
|
|
|
|
sha256 = "0y9pgdakn3n0vf8zs6fjxjw6972nyw4rkfwwza6b8a3ll77kc4k6";
|
2008-03-17 12:18:21 +01:00
|
|
|
};
|
|
|
|
|
2011-10-19 19:11:26 +02:00
|
|
|
buildInputs = [ perl groff ];
|
2010-06-12 22:54:35 +02:00
|
|
|
|
2011-02-05 16:45:02 +01:00
|
|
|
configureFlags = [ "--enable-optimized" "--enable-shared" "--disable-static" ];
|
2010-06-12 23:52:39 +02:00
|
|
|
|
2010-06-12 22:54:35 +02:00
|
|
|
meta = {
|
|
|
|
homepage = http://llvm.org/;
|
|
|
|
description = "Collection of modular and reusable compiler and toolchain technologies";
|
2010-06-13 00:30:09 +02:00
|
|
|
license = "BSD";
|
2011-10-18 18:37:28 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric shlevy];
|
2010-06-12 22:54:35 +02:00
|
|
|
platforms = with stdenv.lib.platforms; all;
|
|
|
|
};
|
2008-03-17 12:18:21 +01:00
|
|
|
}
|
2010-06-13 00:14:43 +02:00
|
|
|
|