added exit0 from https://sigma-star.at/blog/2024/02/exit0-code-injection/
This commit is contained in:
35
mods/nurPkgs/exit0.nix
Normal file
35
mods/nurPkgs/exit0.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, meson
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "exitß";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "richardweinberger";
|
||||
repo = "exit0";
|
||||
rev = "f6cdeeb858ad9717b698a21e6fec3bb94b2aa2dd";
|
||||
sha256 = "";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Kill programs so that they exit with a 0 exit code, by injecting code with debug apis";
|
||||
longDescription = ''
|
||||
Killing programs results into non-zero exit codes and monitoring/parent processes will notice. There are situations where you want to forcefully kill a program but make it look like a graceful exit.
|
||||
|
||||
Further reading: https://sigma-star.at/blog/2024/02/exit0-code-injection/
|
||||
'';
|
||||
homepage = "https://github.com/richardweinberger/exit0";
|
||||
license = licenses.gpl2Only;
|
||||
#maintainers = [ ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user