perf: build with python3
This commit is contained in:
parent
1f5f6b796b
commit
b7f504812b
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, kernel, elfutils, python, perl, newt, slang, asciidoc, xmlto, makeWrapper
|
{ lib, stdenv, kernel, elfutils, python2, python3, perl, newt, slang, asciidoc, xmlto, makeWrapper
|
||||||
, docbook_xsl, docbook_xml_dtd_45, libxslt, flex, bison, pkgconfig, libunwind, binutils
|
, docbook_xsl, docbook_xml_dtd_45, libxslt, flex, bison, pkgconfig, libunwind, binutils
|
||||||
, libiberty, audit, libbfd, libopcodes, openssl, systemtap, numactl
|
, libiberty, audit, libbfd, libopcodes, openssl, systemtap, numactl
|
||||||
, zlib, withGtk ? false, gtk2 ? null
|
, zlib, withGtk ? false, gtk2 ? null
|
||||||
@ -36,12 +36,13 @@ stdenv.mkDerivation {
|
|||||||
# perf refers both to newt and slang
|
# perf refers both to newt and slang
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
asciidoc xmlto docbook_xsl docbook_xml_dtd_45 libxslt
|
asciidoc xmlto docbook_xsl docbook_xml_dtd_45 libxslt
|
||||||
flex bison libiberty audit makeWrapper pkgconfig python perl
|
flex bison libiberty audit makeWrapper pkgconfig
|
||||||
];
|
];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
elfutils newt slang libunwind libbfd zlib openssl systemtap.stapBuild numactl
|
elfutils newt slang libunwind libbfd zlib openssl systemtap.stapBuild numactl
|
||||||
libopcodes
|
libopcodes python3 perl
|
||||||
] ++ stdenv.lib.optional withGtk gtk2;
|
] ++ stdenv.lib.optional withGtk gtk2
|
||||||
|
++ (if (versionAtLeast kernel.version "4.19") then [ python3 ] else [ python2 ]);
|
||||||
|
|
||||||
# Note: we don't add elfutils to buildInputs, since it provides a
|
# Note: we don't add elfutils to buildInputs, since it provides a
|
||||||
# bad `ld' and other stuff.
|
# bad `ld' and other stuff.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user