From 3148c7e45bdaa786ec776d8a49cef6a84d719b03 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Sat, 16 Apr 2016 14:22:59 +0200 Subject: [PATCH] pcapfix: init at 1.1.0 --- pkgs/tools/networking/pcapfix/default.nix | 19 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/tools/networking/pcapfix/default.nix diff --git a/pkgs/tools/networking/pcapfix/default.nix b/pkgs/tools/networking/pcapfix/default.nix new file mode 100644 index 000000000000..0c5035f2d396 --- /dev/null +++ b/pkgs/tools/networking/pcapfix/default.nix @@ -0,0 +1,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 ]; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 61f714c3ad97..b8a736420553 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2783,6 +2783,8 @@ in patchage = callPackage ../applications/audio/patchage { }; + pcapfix = callPackage ../tools/networking/pcapfix { }; + pbzip2 = callPackage ../tools/compression/pbzip2 { }; pciutils = callPackage ../tools/system/pciutils { };