linux-perf: Fix build (unportable shell hack broke).

This commit is contained in:
Petr Rockai
2014-01-25 16:30:14 +01:00
parent 3718a90806
commit 28f0ec6540
2 changed files with 19 additions and 0 deletions
+1
View File
@@ -12,6 +12,7 @@ stdenv.mkDerivation {
preConfigure = ''
cd tools/perf
sed -i s,/usr/include/elfutils,$elfutils/include/elfutils, Makefile
patch -p1 < ${./perf.diff}
[ -f bash_completion ] && sed -i 's,^have perf,_have perf,' bash_completion
export makeFlags="DESTDIR=$out $makeFlags"
'';