Skip to content

Commit f0fe7ba

Browse files
committedFeb 20, 2018
linuxPackages.perf: fix tips.txt lookup, few extra deps
Signed-off-by: Austin Seipp <aseipp@pobox.com>
1 parent 825ff64 commit f0fe7ba

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed
 

‎pkgs/os-specific/linux/kernel/perf.nix

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{ lib, stdenv, kernel, elfutils, python, perl, newt, slang, asciidoc, xmlto, makeWrapper
22
, 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+
}:
56

67
with lib;
78

@@ -17,14 +18,16 @@ stdenv.mkDerivation {
1718
cd tools/perf
1819
sed -i s,/usr/include/elfutils,$elfutils/include/elfutils, Makefile
1920
[ -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\""
2123
'';
2224

2325
# perf refers both to newt and slang
2426
nativeBuildInputs = [ asciidoc xmlto docbook_xsl docbook_xml_dtd_45 libxslt
2527
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;
2831

2932
# Note: we don't add elfutils to buildInputs, since it provides a
3033
# bad `ld' and other stuff.

0 commit comments

Comments
 (0)
Please sign in to comment.