mily: use libclang

This commit is contained in:
Daiderd Jordan 2018-01-16 22:20:13 +01:00
parent f7c7dec43f
commit 47c5728e7d
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -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 = {