evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / on / onesixtyone / package.nix
blob1ff1b0266eaf0890107c7ded7c07cb4244768dae
1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4   pname = "onesixtyone";
5   version = "unstable-2019-12-26";
7   src = fetchFromGitHub {
8     owner = "trailofbits";
9     repo = "onesixtyone";
10     rev = "9ce1dcdad73d45c8694086a4f90d7713be1cbdd7";
11     sha256 = "111nxn4pcbx6p9j8cjjxv1j1s7dgf7f4dix8acsmahwbpzinzkg3";
12   };
14   buildPhase = ''
15     $CC -o onesixtyone onesixtyone.c
16   '';
18   installPhase = ''
19     install -D onesixtyone $out/bin/onesixtyone
20   '';
22   meta = with lib; {
23     description = "Fast SNMP Scanner";
24     homepage = "https://github.com/trailofbits/onesixtyone";
25     license = licenses.gpl2Plus;
26     platforms = platforms.unix;
27     maintainers = [ maintainers.fishi0x01 ];
28     mainProgram = "onesixtyone";
29   };