27 lines
725 B
Nix
27 lines
725 B
Nix
{ stdenv, fetchurl, perl, groff, cmake, python }:
|
|
|
|
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" ];
|
|
|
|
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 shlevy raskin];
|
|
platforms = with stdenv.lib.platforms; all;
|
|
};
|
|
}
|
|
|