Merge pull request #246570 from Lurkki14/seer/patch-hardcoded-gdb

seer: patch hardcoded gdb paths
This commit is contained in:
Nick Cao 2023-08-02 19:32:30 -06:00 committed by GitHub
commit 09b6b8c77f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 ];