depot/third_party/nixpkgs/pkgs/development/tools/misc/seer/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

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