forked from mirrors/nixpkgs
emacs-clang-complete-async: fix build (untested, but at least it builds)
This commit is contained in:
parent
599394162c
commit
199e7908a5
|
@ -1,4 +1,4 @@
|
|||
{ clangStdenv, fetchgit, llvm, clang }:
|
||||
{ clangStdenv, fetchgit, llvmPackages, clang }:
|
||||
|
||||
clangStdenv.mkDerivation {
|
||||
name = "emacs-clang-complete-async-20130218";
|
||||
|
@ -8,7 +8,12 @@ clangStdenv.mkDerivation {
|
|||
sha256 = "1c8zqi6axbsb951azz9iqx3j52j30nd9ypv396hvids3g02cirrf";
|
||||
};
|
||||
|
||||
buildInputs = [ llvm clang.clang ];
|
||||
buildInputs = [ llvmPackages.llvm ];
|
||||
|
||||
patches = [ ./fix-build.patch ];
|
||||
|
||||
CFLAGS = "-I${llvmPackages.clang}/include";
|
||||
LDFLAGS = "-L${llvmPackages.clang}/lib";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
--- old/src/completion.h 2014-11-16 16:58:16.625150124 +0100
|
||||
+++ new/src/completion.h 2014-11-16 16:58:28.020207508 +0100
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
|
||||
#include <clang-c/Index.h>
|
||||
+#include <stdio.h>
|
||||
|
||||
|
||||
typedef struct __completion_Session_struct
|
Loading…
Reference in a new issue