about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/linux-exploit-suggester/default.nix
blob: 9744c416bb7474fd23b84a6a242e81d4a31991a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, stdenvNoCC, fetchFromGitHub }:

stdenvNoCC.mkDerivation rec {
  pname = "linux-exploit-suggester";
  version = "unstable-2022-04-01";

  src = fetchFromGitHub {
    owner = "mzet-";
    repo = pname;
    rev = "54a5c01497d6655be88f6262ccad5bc5a5e4f4ec";
    sha256 = "v0Q8O+aaXEqwWAwGP/u5Nkm4DzM6nM11GI4XbK2PeWM=";
  };

  installPhase = ''
    runHook preInstall

    install -Dm755 linux-exploit-suggester.sh $out/bin/${pname}

    runHook postInstall
  '';

  meta = with lib; {
    description = "Tool designed to assist in detecting security deficiencies for given Linux kernel/Linux-based machine";
    homepage = "https://github.com/mzet-/linux-exploit-suggester";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ emilytrau ];
    platforms = platforms.linux;
  };
}