diff options
Diffstat (limited to 'nixpkgs/pkgs/development/compilers/llvm/4/lld.nix')
-rw-r--r-- | nixpkgs/pkgs/development/compilers/llvm/4/lld.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/compilers/llvm/4/lld.nix b/nixpkgs/pkgs/development/compilers/llvm/4/lld.nix new file mode 100644 index 000000000000..21b0c1c3601c --- /dev/null +++ b/nixpkgs/pkgs/development/compilers/llvm/4/lld.nix @@ -0,0 +1,31 @@ +{ stdenv +, fetch +, cmake +, llvm +, version +}: + +stdenv.mkDerivation { + name = "lld-${version}"; + + src = fetch "lld" "1v9nkpr158j4yd4zmi6rpnfxkp78r1fapr8wji9s6v176gji1kk3"; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ llvm ]; + + outputs = [ "out" "dev" ]; + + enableParallelBuilding = true; + + postInstall = '' + moveToOutput include "$dev" + moveToOutput lib "$dev" + ''; + + meta = { + description = "The LLVM Linker"; + homepage = http://lld.llvm.org/; + license = stdenv.lib.licenses.ncsa; + platforms = stdenv.lib.platforms.all; + }; +} |