nixpkgs/pkgs/development/tools/misc/seer/default.nix
Jussi Kuokkanen bafab52861 seer: patch hardcoded gdb paths
By default, seer tries to use gdb from /usr/bin/gdb

seer changes
2023-08-02 14:23:39 +03:00

34 lines
836 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, gdb, qtcharts, qtbase, wrapQtAppsHook }:
stdenv.mkDerivation rec {
pname = "seer";
version = "1.17";
src = fetchFromGitHub {
owner = "epasveer";
repo = "seer";
rev = "v${version}";
sha256 = "sha256-lM6w+QwIRYP/2JDx4yynJxhVXt8SouOWgsLGXSwolIw=";
};
preConfigure = ''
cd src
'';
patchPhase = ''
substituteInPlace src/{SeerGdbConfigPage,SeerMainWindow,SeerGdbWidget}.cpp \
--replace "/usr/bin/gdb" "${gdb}/bin/gdb"
'';
buildInputs = [ qtbase qtcharts ];
nativeBuildInputs = [ cmake wrapQtAppsHook ];
meta = with lib; {
description = "A Qt gui frontend for GDB";
homepage = "https://github.com/epasveer/seer";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ foolnotion ];
};
}