perf: Use libunwind and libbfd

This gives better stack traces.

+3 -2
+3 -2
pkgs/os-specific/linux/kernel/perf.nix
··· 1 1 { lib, stdenv, kernel, elfutils, python, perl, newt, slang, asciidoc, xmlto 2 - , docbook_xsl, docbook_xml_dtd_45, libxslt, flex, bison, pkgconfig 2 + , docbook_xsl, docbook_xml_dtd_45, libxslt, flex, bison, pkgconfig, libunwind, binutils 3 3 , withGtk ? false, gtk ? null }: 4 4 5 5 with lib; ··· 21 21 ''; 22 22 23 23 # perf refers both to newt and slang 24 + # binutils is required for libbfd. 24 25 nativeBuildInputs = [ asciidoc xmlto docbook_xsl docbook_xml_dtd_45 libxslt flex bison ]; 25 - buildInputs = [ elfutils python perl newt slang pkgconfig] ++ 26 + buildInputs = [ elfutils python perl newt slang pkgconfig libunwind binutils ] ++ 26 27 stdenv.lib.optional withGtk gtk; 27 28 28 29 NIX_CFLAGS_COMPILE = "-Wno-error=cpp";