systemtap: remove hack, fix build

K900 53539903 060cf0dc

+2 -14
+2 -14
pkgs/development/tools/profiling/systemtap/default.nix
··· 22 env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=deprecated-declarations" ]; # Needed with GCC 12 23 }; 24 25 - ## a kernel build dir as expected by systemtap 26 - kernelBuildDir = runCommand "kbuild-${kernel.version}-merged" { } '' 27 - mkdir -p $out 28 - for f in \ 29 - ${kernel}/System.map \ 30 - ${kernel.dev}/vmlinux \ 31 - ${kernel.dev}/lib/modules/${kernel.modDirVersion}/build/{*,.*} 32 - do 33 - ln -s $(readlink -f $f) $out 34 - done 35 - ''; 36 - 37 pypkgs = with python3.pkgs; makePythonPath [ pyparsing ]; 38 39 in runCommand "systemtap-${kernel.version}-${version}" { 40 - inherit stapBuild kernelBuildDir; 41 nativeBuildInputs = [ makeWrapper ]; 42 meta = { 43 homepage = "https://sourceware.org/systemtap/"; ··· 52 done 53 rm $out/bin/stap $out/bin/dtrace 54 makeWrapper $stapBuild/bin/stap $out/bin/stap \ 55 - --add-flags "-r $kernelBuildDir" \ 56 --prefix PATH : ${lib.makeBinPath [ stdenv.cc.cc stdenv.cc.bintools elfutils gnumake ]} 57 makeWrapper $stapBuild/bin/dtrace $out/bin/dtrace \ 58 --prefix PYTHONPATH : ${pypkgs}
··· 22 env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=deprecated-declarations" ]; # Needed with GCC 12 23 }; 24 25 pypkgs = with python3.pkgs; makePythonPath [ pyparsing ]; 26 27 in runCommand "systemtap-${kernel.version}-${version}" { 28 + inherit stapBuild; 29 nativeBuildInputs = [ makeWrapper ]; 30 meta = { 31 homepage = "https://sourceware.org/systemtap/"; ··· 40 done 41 rm $out/bin/stap $out/bin/dtrace 42 makeWrapper $stapBuild/bin/stap $out/bin/stap \ 43 + --add-flags "-r ${kernel.dev}" \ 44 --prefix PATH : ${lib.makeBinPath [ stdenv.cc.cc stdenv.cc.bintools elfutils gnumake ]} 45 makeWrapper $stapBuild/bin/dtrace $out/bin/dtrace \ 46 --prefix PYTHONPATH : ${pypkgs}