Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "pcapfix"; 9 version = "1.1.7"; 10 11 src = fetchurl { 12 url = "https://f00l.de/pcapfix/pcapfix-${version}.tar.gz"; 13 sha256 = "sha256-bL6/b5npdrGrdok5JK65DNh8MWUILRUmTBkz8POz4Ow="; 14 }; 15 16 postPatch = ''sed -i "s|/usr|$out|" Makefile''; 17 18 meta = with lib; { 19 homepage = "https://f00l.de/pcapfix/"; 20 description = "Repair your broken pcap and pcapng files"; 21 license = licenses.gpl3; 22 maintainers = [ maintainers.ehmry ]; 23 platforms = platforms.all; 24 mainProgram = "pcapfix"; 25 }; 26}