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

stdenv.mkDerivation rec {
  pname = "pcapfix";
  version = "1.1.4";

  src = fetchurl {
    url = "https://f00l.de/pcapfix/pcapfix-${version}.tar.gz";
    sha256 = "0m6308ka33wqs568b7cwa1f5q0bv61j2nwfizdyzrazw673lnh6d";
  };

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

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