summary refs log tree commit diff
path: root/pkgs/tools/networking/pcapfix/default.nix
blob: 0c5035f2d3967b0d28be05a77d3e501681385b76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  name = "pcapfix-1.1.0";

  src = fetchurl {
    url = "https://f00l.de/pcapfix/${name}.tar.gz";
    sha256 = "025jpsqav9wg9lql7jfpd67z1113j8gzmjc5nqf5q07b01nnpfgj";
  };

  postPatch = ''sed -i "s|/usr|$out|" Makefile'';

  meta = with stdenv.lib;
    { homepage = "https://f00l.de/pcapfix/";
      description = "Repair your broken pcap and pcapng files";
      license = licenses.gpl3;
      maintainers = [ maintainers.ehmry ];
    };
}