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-16 08:32:11 +00:00
version = "2024-07-16";
2024-04-25 08:01:56 +00:00
src = fetchFromGitHub {
owner = "xinyangli";
repo = "mini-gdbstub";
2024-07-19 06:36:21 +00:00
rev = "0aff46d138960f59b1fa4f31bc7a5afbf15a9811";
hash = "sha256-aDe+46teDiEbdACr44881fGTEGVhKKMHvLuA5xH79cQ=";
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;
};
}