Skip to content

Commit

Permalink
mily: use libclang
Browse files Browse the repository at this point in the history
  • Loading branch information
LnL7 committed Jan 16, 2018
1 parent f7c7dec commit 47c5728
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkgs/applications/misc/milu/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, unzip, pkgconfig, glib, clang, gcc }:
{ stdenv, fetchFromGitHub, unzip, pkgconfig, glib, llvmPackages }:

stdenv.mkDerivation rec {
name = "milu-nightly-${version}";
Expand All @@ -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 = ''
Expand All @@ -28,8 +26,7 @@ stdenv.mkDerivation rec {
buildInputs = [
glib
unzip
clang
gcc
llvmPackages.libclang
];

meta = {
Expand Down

0 comments on commit 47c5728

Please sign in to comment.