seer: patch hardcoded gdb paths

By default, seer tries to use gdb from /usr/bin/gdb

seer changes
This commit is contained in:
Jussi Kuokkanen 2023-08-01 16:04:38 +03:00
parent ae0d0f1973
commit bafab52861

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, qtcharts, qtbase, wrapQtAppsHook }:
{ lib, stdenv, fetchFromGitHub, cmake, gdb, qtcharts, qtbase, wrapQtAppsHook }:
stdenv.mkDerivation rec {
pname = "seer";
@ -15,6 +15,11 @@ stdenv.mkDerivation rec {
cd src
'';
patchPhase = ''
substituteInPlace src/{SeerGdbConfigPage,SeerMainWindow,SeerGdbWidget}.cpp \
--replace "/usr/bin/gdb" "${gdb}/bin/gdb"
'';
buildInputs = [ qtbase qtcharts ];
nativeBuildInputs = [ cmake wrapQtAppsHook ];