c0e93ca39d
Signed-off-by: Shea Levy <shea@shealevy.com>
31 lines
791 B
Nix
31 lines
791 B
Nix
{ stdenv, fetchurl, perl, groff, cmake, python, binutils }:
|
|
|
|
let version = "3.1"; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "llvm-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://llvm.org/releases/${version}/llvm-${version}.src.tar.gz";
|
|
sha256 = "1ea05135197b5400c1f88d00ff280d775ce778f8f9ea042e25a1e1e734a4b9ab";
|
|
};
|
|
|
|
buildInputs = [ perl groff cmake python ];
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
"-DLLVM_BINUTILS_INCDIR=${binutils}/include"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
homepage = http://llvm.org/;
|
|
description = "Collection of modular and reusable compiler and toolchain technologies";
|
|
license = "BSD";
|
|
maintainers = with stdenv.lib.maintainers; [viric raskin vlstill];
|
|
platforms = with stdenv.lib.platforms; all;
|
|
};
|
|
}
|
|
|