mily: use libclang
This commit is contained in:
parent
f7c7dec43f
commit
47c5728e7d
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, unzip, pkgconfig, glib, clang, gcc }:
|
||||
{ stdenv, fetchFromGitHub, unzip, pkgconfig, glib, llvmPackages }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "milu-nightly-${version}";
|
||||
@ -15,8 +15,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
preConfigure = ''
|
||||
sed -i 's#/usr/bin/##g' Makefile
|
||||
sed -i "s#-lclang#-L$(clang --print-search-dirs |
|
||||
sed -ne '/libraries:/{s/libraries: =//; s/:/ -L/gp}') -lclang#g" Makefile
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
@ -28,8 +26,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [
|
||||
glib
|
||||
unzip
|
||||
clang
|
||||
gcc
|
||||
llvmPackages.libclang
|
||||
];
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user