mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
fea2266290
Now most packages in the llvm suite are built as separate derivations. The exceptions are: * compiler-rt must currently be built with llvm. This increases llvm's size by 6 MB * clang-tools-extra must be built with clang In addition, the top-level llvm attribute is defaulted to llvm 3.4, and llvm 3.3 must be accessed by the llvm_33 attribute. This is to make the out-of-date packages obvious in the hope that eventually all will be updated to work with 3.4 and 3.3 can be removed. I think we should keep this policy in the future (latest llvm gets top-level name, the rest are versioned until they can be removed). The llvm packages (except libc++, which exception I will try to remove on the next update) can all be accessed via the llvmPackages attribute, and there are also aliases for the packages that already existed (llvm, clang, and dragonegg). Signed-off-by: Shea Levy <shea@shealevy.com>
27 lines
773 B
Nix
27 lines
773 B
Nix
{ clangStdenv, fetchgit, llvm, clang }:
|
|
|
|
clangStdenv.mkDerivation {
|
|
name = "emacs-clang-complete-async-20130218";
|
|
src = fetchgit {
|
|
url = "git://github.com/Golevka/emacs-clang-complete-async.git";
|
|
rev = "f01488971ec8b5752780d130fb84de0c16a46f31";
|
|
sha256 = "1c8zqi6axbsb951azz9iqx3j52j30nd9ypv396hvids3g02cirrf";
|
|
};
|
|
|
|
buildInputs = [ llvm clang.clang ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
mkdir -p $out/share/emacs/site-lisp
|
|
install -m 755 clang-complete $out/bin
|
|
install -m 644 auto-complete-clang-async.el $out/share/emacs/site-lisp
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/Golevka/emacs-clang-complete-async";
|
|
description = "An emacs plugin to complete C and C++ code using libclang";
|
|
license = "GPLv3+";
|
|
};
|
|
}
|
|
|