1 { lib, stdenv, fetchFromGitHub, libnetfilter_queue, libnfnetlink }:
5 version = "2017-12-27";
7 src = fetchFromGitHub {
8 owner = "blechschmidt";
10 rev = "9a13d6f9c12aeea4f6d3513ba2461d34f841f278";
11 sha256 = "1iv2xiz9w8hbz684caw50fn4a9vc8ninfgaqafkh9sa8mzpfzcqr";
14 buildInputs = [ libnetfilter_queue libnfnetlink ];
17 substituteInPlace preloader.c --replace /usr/local/ $out/
18 substituteInPlace Makefile --replace /usr/local/ $out/
22 mkdir -p $out/bin $out/lib
26 description = "IPv4 and IPv6 address rate limiting evasion tool";
27 homepage = "https://github.com/blechschmidt/freebind";
28 license = licenses.gpl3;
29 platforms = platforms.linux;