2014-11-16 17:12:05 +01:00
|
|
|
{ clangStdenv, fetchgit, llvmPackages, clang }:
|
2013-02-18 14:05:08 +01:00
|
|
|
|
|
|
|
clangStdenv.mkDerivation {
|
|
|
|
name = "emacs-clang-complete-async-20130218";
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/Golevka/emacs-clang-complete-async.git";
|
|
|
|
rev = "f01488971ec8b5752780d130fb84de0c16a46f31";
|
|
|
|
sha256 = "1c8zqi6axbsb951azz9iqx3j52j30nd9ypv396hvids3g02cirrf";
|
|
|
|
};
|
|
|
|
|
2014-11-16 17:12:05 +01:00
|
|
|
buildInputs = [ llvmPackages.llvm ];
|
|
|
|
|
|
|
|
patches = [ ./fix-build.patch ];
|
|
|
|
|
|
|
|
CFLAGS = "-I${llvmPackages.clang}/include";
|
|
|
|
LDFLAGS = "-L${llvmPackages.clang}/lib";
|
2013-02-18 14:05:08 +01:00
|
|
|
|
|
|
|
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";
|
2014-07-28 11:43:20 +02:00
|
|
|
license = clangStdenv.lib.licenses.gpl3Plus;
|
2013-02-18 14:05:08 +01:00
|
|
|
};
|
|
|
|
}
|