From bafab528612c5abf906e5101b684a8712f687f14 Mon Sep 17 00:00:00 2001 From: Jussi Kuokkanen Date: Tue, 1 Aug 2023 16:04:38 +0300 Subject: [PATCH] seer: patch hardcoded gdb paths By default, seer tries to use gdb from /usr/bin/gdb seer changes --- pkgs/development/tools/misc/seer/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/seer/default.nix b/pkgs/development/tools/misc/seer/default.nix index a05fac0fb5c3..92bc871185ff 100644 --- a/pkgs/development/tools/misc/seer/default.nix +++ b/pkgs/development/tools/misc/seer/default.nix @@ -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 ];