2018-07-21 00:44:44 +00:00
|
|
|
{ clangStdenv, fetchgit, llvmPackages }:
|
2013-02-18 13:05:08 +00:00
|
|
|
|
|
|
|
clangStdenv.mkDerivation {
|
|
|
|
name = "emacs-clang-complete-async-20130218";
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/Golevka/emacs-clang-complete-async.git";
|
|
|
|
rev = "f01488971ec8b5752780d130fb84de0c16a46f31";
|
2016-06-02 11:26:44 +00:00
|
|
|
sha256 = "01smjinrvx0w5z847a43fh2hyr6rrq1kaglfakbr6dcr313w89x9";
|
2013-02-18 13:05:08 +00:00
|
|
|
};
|
|
|
|
|
2014-11-16 16:12:05 +00:00
|
|
|
buildInputs = [ llvmPackages.llvm ];
|
|
|
|
|
|
|
|
patches = [ ./fix-build.patch ];
|
|
|
|
|
|
|
|
CFLAGS = "-I${llvmPackages.clang}/include";
|
|
|
|
LDFLAGS = "-L${llvmPackages.clang}/lib";
|
2013-02-18 13:05:08 +00: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 = {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://github.com/Golevka/emacs-clang-complete-async;
|
2013-02-18 13:05:08 +00:00
|
|
|
description = "An emacs plugin to complete C and C++ code using libclang";
|
2014-07-28 09:43:20 +00:00
|
|
|
license = clangStdenv.lib.licenses.gpl3Plus;
|
2013-02-18 13:05:08 +00:00
|
|
|
};
|
|
|
|
}
|