uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
32
pkgs/tools/networking/freebind/default.nix
Normal file
32
pkgs/tools/networking/freebind/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib, stdenv, fetchFromGitHub, libnetfilter_queue, libnfnetlink }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "freebind";
|
||||
version = "2017-12-27";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "blechschmidt";
|
||||
repo = "freebind";
|
||||
rev = "9a13d6f9c12aeea4f6d3513ba2461d34f841f278";
|
||||
sha256 = "1iv2xiz9w8hbz684caw50fn4a9vc8ninfgaqafkh9sa8mzpfzcqr";
|
||||
};
|
||||
|
||||
buildInputs = [ libnetfilter_queue libnfnetlink ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace preloader.c --replace /usr/local/ $out/
|
||||
substituteInPlace Makefile --replace /usr/local/ $out/
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p $out/bin $out/lib
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "IPv4 and IPv6 address rate limiting evasion tool";
|
||||
homepage = "https://github.com/blechschmidt/freebind";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ volth ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue