mini-gdbstub: init at 2024-04-25
This commit is contained in:
parent
6a499c8371
commit
3febd116cd
2 changed files with 36 additions and 0 deletions
|
@ -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 { };
|
||||
}
|
||||
|
|
35
pkgs/mini-gdbstub/default.nix
Normal file
35
pkgs/mini-gdbstub/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ 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
|
||||
cp build/libgdbstub.a $out/lib
|
||||
'';
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue