btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / un / unhide / package.nix
blobe6dd2c8ec8aadfa8419c1057c70a3103eebf8a1d
2   cmake,
3   fetchFromGitHub,
4   fetchurl,
5   iproute2,
6   lib,
7   lsof,
8   nettools,
9   pkg-config,
10   procps,
11   psmisc,
12   stdenv,
15 let
16   makefile = fetchurl {
17     url = "https://gitlab.archlinux.org/archlinux/packaging/packages/unhide/-/raw/27c25ad5e1c6123e89f1f35423a0d50742ae69e9/Makefile";
18     hash = "sha256-bSo3EzpcsFmVvwyPgjCCDOJLbzNpxJ6Eptp2hNK7ZXk=";
19   };
21 stdenv.mkDerivation rec {
22   pname = "unhide";
23   version = "20220611";
25   src = fetchFromGitHub {
26     owner = "YJesus";
27     repo = "Unhide";
28     rev = "v${version}";
29     hash = "sha256-v4otbDhKKRLywH6aP+mbMR0olHbW+jk4TXTBY+iaxdo=";
30   };
32   postPatch = ''
33     cp ${makefile} Makefile
34   '';
36   dontConfigure = true;
38   makeFlags = [ "PREFIX=${placeholder "out"}" ];
40   strictDeps = true;
42   nativeBuildInputs = [
43     cmake
44     pkg-config
45   ];
47   buildInputs = [
48     iproute2
49     lsof
50     nettools
51     procps
52     psmisc
53   ];
55   meta = {
56     description = "Forensic tool to find hidden processes and TCP/UDP ports by rootkits/LKMs";
57     homepage = "https://github.com/YJesus/Unhide";
58     changelog = "https://github.com/YJesus/Unhide/blob/${src.rev}/NEWS";
59     license = lib.licenses.gpl3Only;
60     maintainers = with lib.maintainers; [ tochiaha ];
61     mainProgram = "unhide";
62     platforms = lib.platforms.all;
63   };