perf: fix some hardcoded paths with newer, more exciting hardcoded NixOS paths!
In the long run it looks like we may actually need a small set of patches to Perf if that's more maintainable, in which case we would much rather check NIX_DEBUG_INFO_DIRS. Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
bd9a562402
commit
cbf6fa3cc7
|
@ -16,7 +16,14 @@ stdenv.mkDerivation {
|
|||
|
||||
preConfigure = ''
|
||||
cd tools/perf
|
||||
sed -i s,/usr/include/elfutils,$elfutils/include/elfutils, Makefile
|
||||
|
||||
substituteInPlace Makefile \
|
||||
--replace /usr/include/elfutils $elfutils/include/elfutils
|
||||
|
||||
for x in util/build-id.c util/dso.c; do
|
||||
substituteInPlace $x --replace /usr/lib/debug /run/current-system/sw/lib/debug
|
||||
done
|
||||
|
||||
[ -f bash_completion ] && sed -i 's,^have perf,_have perf,' bash_completion
|
||||
export makeFlags="DESTDIR=$out WERROR=0 $makeFlags"
|
||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -DTIPDIR=\"$out/share/doc/perf-tip\""
|
||||
|
|
Loading…
Reference in New Issue