seer: patch hardcoded gdb paths
By default, seer tries to use gdb from /usr/bin/gdb seer changes
This commit is contained in:
parent
ae0d0f1973
commit
bafab52861
@ -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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user