nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 865 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 libnetfilter_queue, 6 libnfnetlink, 7}: 8 9stdenv.mkDerivation { 10 pname = "freebind"; 11 version = "2017-12-27"; 12 13 src = fetchFromGitHub { 14 owner = "blechschmidt"; 15 repo = "freebind"; 16 rev = "9a13d6f9c12aeea4f6d3513ba2461d34f841f278"; 17 sha256 = "1iv2xiz9w8hbz684caw50fn4a9vc8ninfgaqafkh9sa8mzpfzcqr"; 18 }; 19 20 buildInputs = [ 21 libnetfilter_queue 22 libnfnetlink 23 ]; 24 25 postPatch = '' 26 substituteInPlace preloader.c --replace /usr/local/ $out/ 27 substituteInPlace Makefile --replace /usr/local/ $out/ 28 ''; 29 30 preInstall = '' 31 mkdir -p $out/bin $out/lib 32 ''; 33 34 meta = { 35 description = "IPv4 and IPv6 address rate limiting evasion tool"; 36 homepage = "https://github.com/blechschmidt/freebind"; 37 license = lib.licenses.gpl3; 38 platforms = lib.platforms.linux; 39 maintainers = [ ]; 40 }; 41}