about summary refs log tree commit diff
path: root/pkgs/by-name/ga/gapcast/package.nix
blob: c68e19f64022da00f38fb8b1c2c57a9155ec93c6 (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
31
32
33
34
35
36
37
38
39
40
41
42
{
  lib,
  stdenv,
  buildGoModule,
  fetchFromGitHub,
  libpcap,
  xorg,
}:

buildGoModule rec {
  pname = "gapcast";
  version = "1.0.3";

  src = fetchFromGitHub {
    owner = "ANDRVV";
    repo = "gapcast";
    rev = "refs/tags/v${version}";
    hash = "sha256-Ei5XfcnbUoegB8lNEEQ3PrCzNJGaVeVd2lfrMWYoODw=";
  };

  vendorHash = "sha256-jn0zTorp/rkd91+ZGDbsNVcTxEndFMMrsb+/dGrZcy4=";

  buildInputs = [
    libpcap
    xorg.libX11
  ];

  ldflags = [
    "-s"
    "-w"
  ];

  meta = {
    description = "802.11 broadcast analyzer & injector";
    homepage = "https://github.com/ANDRVV/gapcast";
    changelog = "https://github.com/ANDRVV/gapcast/releases/tag/v${version}";
    license = lib.licenses.gpl2Only;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "gapcast";
    broken = stdenv.isDarwin;
  };
}