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 {
|
stdenv.mkDerivation rec {
|
||||||
name = "milu-nightly-${version}";
|
name = "milu-nightly-${version}";
|
||||||
@ -15,8 +15,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
sed -i 's#/usr/bin/##g' Makefile
|
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 = ''
|
installPhase = ''
|
||||||
@ -28,8 +26,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
glib
|
glib
|
||||||
unzip
|
unzip
|
||||||
clang
|
llvmPackages.libclang
|
||||||
gcc
|
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user