systemtap: use python3

This commit is contained in:
Martin Weinelt 2022-01-12 04:37:34 +01:00
parent 88b69dbcbc
commit 9cdd711a66
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,5 +1,5 @@
{ lib, fetchgit, pkg-config, gettext, runCommand, makeWrapper
, elfutils, kernel, gnumake, python2, python2Packages
, cpio, elfutils, kernel, gnumake, python3
}:
let
@ -16,8 +16,8 @@ let
pname = "systemtap";
inherit version;
src = fetchgit { inherit url rev sha256; };
nativeBuildInputs = [ pkg-config ];
buildInputs = [ elfutils gettext python2 python2Packages.setuptools ];
nativeBuildInputs = [ pkg-config cpio ];
buildInputs = [ elfutils gettext python3 python3.pkgs.setuptools ];
enableParallelBuilding = true;
};
@ -33,7 +33,7 @@ let
done
'';
pypkgs = with python2Packages; makePythonPath [ pyparsing ];
pypkgs = with python3.pkgs; makePythonPath [ pyparsing ];
in runCommand "systemtap-${kernel.version}-${version}" {
inherit stapBuild kernelBuildDir;