mini-gdbstub: init at 2024-04-25

This commit is contained in:
xinyangli 2024-04-25 16:01:56 +08:00
parent 6a499c8371
commit f6acae1492
Signed by: xin
SSH key fingerprint: SHA256:qZ/tzd8lYRtUFSrfBDBMcUqV4GHKxqeqRA3huItgvbk
2 changed files with 37 additions and 0 deletions

View file

@ -21,4 +21,5 @@ with pkgs;
ieda = callPackage ./pkgs/ieda { };
abstract-machine = callPackage ./pkgs/abstract-machine { };
pcap2socks = callPackage ./pkgs/pcap2socks { };
mini-gdbstub = callPackage ./pkgs/mini-gdbstub { };
}

View file

@ -0,0 +1,36 @@
{ lib
, stdenv
, fetchFromGitHub
, gnumake
}:
stdenv.mkDerivation rec {
pname = "mini-gdbstub";
version = "2024-04-25";
src = fetchFromGitHub {
owner = "xinyangli";
repo = "mini-gdbstub";
rev = "b434a22822b1d2f5a067faf621f9d246c70f3a93";
hash = "sha256-tnnpwfYpVhIufbz+2rgiUhspo+Cuqco35b+eax20vQo=";
};
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; [ xinyangli ];
mainProgram = "mini-gdbstub";
platforms = platforms.all;
};
}