mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
unhide-gui: init at 20220611
Releases: https://github.com/YJesus/Unhide/releases/tag/v20220611
This commit is contained in:
parent
fcef8d5b85
commit
c9ea1b9656
61
pkgs/by-name/un/unhide-gui/package.nix
Executable file
61
pkgs/by-name/un/unhide-gui/package.nix
Executable file
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
python3Packages,
|
||||
python3,
|
||||
unhide,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "unhide-gui";
|
||||
version = "20220611";
|
||||
format = "other";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "YJesus";
|
||||
repo = "Unhide";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-v4otbDhKKRLywH6aP+mbMR0olHbW+jk4TXTBY+iaxdo=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [ tkinter ];
|
||||
|
||||
buildInputs = [ unhide ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace unhideGui.py \
|
||||
--replace-fail "\This" "This" \
|
||||
--replace-fail "__credits__" "#__credits__" \
|
||||
--replace-fail "./unhide-linux" "${unhide}/bin/unhide-linux" \
|
||||
--replace-fail "./unhide-tcp" "${unhide}/bin/unhide-tcp"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/{bin,share/unhideGui}
|
||||
cp -R *.py $out/share/unhideGui
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
fixupPhase = ''
|
||||
runHook preFixup
|
||||
|
||||
makeWrapper "${python3Packages.python.interpreter}" "$out/bin/unhideGui" \
|
||||
--set PYTHONPATH "$PYTHONPATH" \
|
||||
--add-flags "$out/share/unhideGui/unhideGui.py"
|
||||
|
||||
runHook postFixup
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Forensic tool to find hidden processes and TCP/UDP ports by rootkits, LKMs or other hiding technique";
|
||||
homepage = "https://github.com/YJesus/Unhide";
|
||||
changelog = "https://github.com/YJesus/Unhide/blob/${src.rev}/NEWS";
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = with lib.maintainers; [ tochiaha ];
|
||||
mainProgram = "unhide-gui";
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue