Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchurl,
|
|
cmake,
|
|
iproute2,
|
|
lsof,
|
|
net-tools,
|
|
pkg-config,
|
|
procps,
|
|
psmisc,
|
|
}:
|
|
|
|
let
|
|
makefile = fetchurl {
|
|
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/unhide/-/raw/27c25ad5e1c6123e89f1f35423a0d50742ae69e9/Makefile";
|
|
hash = "sha256-bSo3EzpcsFmVvwyPgjCCDOJLbzNpxJ6Eptp2hNK7ZXk=";
|
|
};
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "unhide";
|
|
version = "20240510";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "YJesus";
|
|
repo = "Unhide";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-CcS/rR/jPgbcF09aM4l6z52kwFhdQI1VZOyDF2/X6Us=";
|
|
};
|
|
|
|
postPatch = ''
|
|
cp ${makefile} Makefile
|
|
'';
|
|
|
|
dontConfigure = true;
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
iproute2
|
|
lsof
|
|
net-tools
|
|
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/${finalAttrs.src.rev}/NEWS";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ tochiaha ];
|
|
mainProgram = "unhide";
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|