1
1
{ lib , stdenv , kernel , elfutils , python , perl , newt , slang , asciidoc , xmlto , makeWrapper
2
2
, docbook_xsl , docbook_xml_dtd_45 , libxslt , flex , bison , pkgconfig , libunwind , binutils
3
- , libiberty , libaudit , libbfd
4
- , zlib , withGtk ? false , gtk2 ? null } :
3
+ , libiberty , libaudit , libbfd , openssl , systemtap , numactl
4
+ , zlib , withGtk ? false , gtk2 ? null
5
+ } :
5
6
6
7
with lib ;
7
8
@@ -17,14 +18,16 @@ stdenv.mkDerivation {
17
18
cd tools/perf
18
19
sed -i s,/usr/include/elfutils,$elfutils/include/elfutils, Makefile
19
20
[ -f bash_completion ] && sed -i 's,^have perf,_have perf,' bash_completion
20
- export makeFlags="DESTDIR=$out $makeFlags"
21
+ export makeFlags="DESTDIR=$out WERROR=0 $makeFlags"
22
+ export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -DTIPDIR=\"$out/share/doc/perf-tip\""
21
23
'' ;
22
24
23
25
# perf refers both to newt and slang
24
26
nativeBuildInputs = [ asciidoc xmlto docbook_xsl docbook_xml_dtd_45 libxslt
25
27
flex bison libiberty libaudit makeWrapper pkgconfig python perl ] ;
26
- buildInputs = [ elfutils newt slang libunwind libbfd zlib ] ++
27
- stdenv . lib . optional withGtk gtk2 ;
28
+ buildInputs =
29
+ [ elfutils newt slang libunwind libbfd zlib openssl systemtap . stapBuild numactl
30
+ ] ++ stdenv . lib . optional withGtk gtk2 ;
28
31
29
32
# Note: we don't add elfutils to buildInputs, since it provides a
30
33
# bad `ld' and other stuff.
0 commit comments