summary refs log tree commit diff
path: root/pkgs/tools/security/onesixtyone/default.nix
blob: 4eed52b07f0e913829108c3fe403e426e9bf716d (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
30
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "onesixtyone";
  version = "unstable-2019-12-26";

  src = fetchFromGitHub {
    owner = "trailofbits";
    repo = "onesixtyone";
    rev = "9ce1dcdad73d45c8694086a4f90d7713be1cbdd7";
    sha256 = "111nxn4pcbx6p9j8cjjxv1j1s7dgf7f4dix8acsmahwbpzinzkg3";
  };

  buildPhase = ''
    $CC -o onesixtyone onesixtyone.c
  '';

  installPhase = ''
    install -D onesixtyone $out/bin/onesixtyone
  '';

  meta = with stdenv.lib; {
    description = "Fast SNMP Scanner";
    homepage = "https://github.com/trailofbits/onesixtyone";
    license = licenses.gpl2Plus;
    platforms = platforms.unix;
    maintainers = [ maintainers.fishi0x01 ];
  };
}