1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

perf: Allow proceeding in build even if patch fails.

Patching fails for linux 3.13 but it builds OK.
This commit is contained in:
Vladimir Still 2014-02-07 18:16:24 +01:00
parent 6b2533c48f
commit 70e4f8f928

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation {
preConfigure = ''
cd tools/perf
sed -i s,/usr/include/elfutils,$elfutils/include/elfutils, Makefile
patch -p1 < ${./perf.diff}
patch -p1 < ${./perf.diff} || true
[ -f bash_completion ] && sed -i 's,^have perf,_have perf,' bash_completion
export makeFlags="DESTDIR=$out $makeFlags"
'';