567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
50 lines
939 B
Nix
50 lines
939 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
gdb,
|
|
kdePackages,
|
|
wrapQtAppsHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "seer";
|
|
version = "2.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "epasveer";
|
|
repo = "seer";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-QXVsjTJYGE/7nTKldlOGN6AnW8OthrBJruVbb/HiPdg=";
|
|
};
|
|
|
|
preConfigure = ''
|
|
cd src
|
|
'';
|
|
|
|
patchPhase = ''
|
|
substituteInPlace src/{SeerGdbConfigPage,SeerMainWindow,SeerGdbWidget}.cpp \
|
|
--replace-fail "/usr/bin/gdb" "${gdb}/bin/gdb"
|
|
'';
|
|
|
|
buildInputs = with kdePackages; [
|
|
qtbase
|
|
qtcharts
|
|
qtsvg
|
|
];
|
|
nativeBuildInputs = [
|
|
cmake
|
|
kdePackages.wrapQtAppsHook
|
|
];
|
|
|
|
meta = {
|
|
description = "Qt gui frontend for GDB";
|
|
mainProgram = "seergdb";
|
|
homepage = "https://github.com/epasveer/seer";
|
|
license = lib.licenses.gpl3Only;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [ foolnotion ];
|
|
};
|
|
}
|