depot/third_party/nixpkgs/pkgs/by-name/un/unhide/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

64 lines
1.2 KiB
Nix
Executable file

{
cmake,
fetchFromGitHub,
fetchurl,
iproute2,
lib,
lsof,
nettools,
pkg-config,
procps,
psmisc,
stdenv,
}:
let
makefile = fetchurl {
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/unhide/-/raw/27c25ad5e1c6123e89f1f35423a0d50742ae69e9/Makefile";
hash = "sha256-bSo3EzpcsFmVvwyPgjCCDOJLbzNpxJ6Eptp2hNK7ZXk=";
};
in
stdenv.mkDerivation rec {
pname = "unhide";
version = "20220611";
src = fetchFromGitHub {
owner = "YJesus";
repo = "Unhide";
rev = "v${version}";
hash = "sha256-v4otbDhKKRLywH6aP+mbMR0olHbW+jk4TXTBY+iaxdo=";
};
postPatch = ''
cp ${makefile} Makefile
'';
dontConfigure = true;
makeFlags = [ "PREFIX=${placeholder "out"}" ];
strictDeps = true;
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
iproute2
lsof
nettools
procps
psmisc
];
meta = {
description = "Forensic tool to find hidden processes and TCP/UDP ports by rootkits/LKMs";
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";
platforms = lib.platforms.all;
};
}