nur/pkgs/mini-gdbstub/default.nix

37 lines
844 B
Nix
Raw Normal View History

2024-04-25 08:01:56 +00:00
{ lib
, stdenv
, fetchFromGitHub
, gnumake
}:
stdenv.mkDerivation rec {
pname = "mini-gdbstub";
2024-07-25 06:59:46 +00:00
version = "2024-07-25";
2024-04-25 08:01:56 +00:00
src = fetchFromGitHub {
owner = "xinyangli";
repo = "mini-gdbstub";
2024-07-25 06:59:46 +00:00
rev = "3dff8d1ccffb3411c6ec4b8c0567af7c8738e8a0";
hash = "sha256-AWVfSsRvEScZMRL7ZuKbPYvFmbRARodf87r3SWUEJqA=";
2024-04-25 08:01:56 +00:00
};
nativeBuildInputs = [
gnumake
];
installPhase = ''
mkdir -p $out/lib $out/include
cp build/libgdbstub.a $out/lib
cp include/gdbstub.h $out/include
'';
meta = with lib; {
description = "An implementation of the GDB Remote Serial Protocol to help you adding debug mode on emulator";
homepage = "https://github.com/xinyangli/mini-gdbstub";
license = licenses.mit;
maintainers = with maintainers; [ ];
mainProgram = "mini-gdbstub";
platforms = platforms.all;
};
}