From 2f8c18fd4d5e3f5cfa96a378c3d64bdbc87a88b4 Mon Sep 17 00:00:00 2001 From: dasj19 Date: Sat, 12 Feb 2022 15:23:43 +0100 Subject: [PATCH] reaverwps: enable parallel build (#156976) --- pkgs/tools/networking/reaver-wps/default.nix | 4 ++++ pkgs/tools/networking/reaver-wps/parallel-build.patch | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 pkgs/tools/networking/reaver-wps/parallel-build.patch diff --git a/pkgs/tools/networking/reaver-wps/default.nix b/pkgs/tools/networking/reaver-wps/default.nix index ec226f50668b..37215c37b93d 100644 --- a/pkgs/tools/networking/reaver-wps/default.nix +++ b/pkgs/tools/networking/reaver-wps/default.nix @@ -29,6 +29,10 @@ stdenv.mkDerivation rec { wrapProgram $out/bin/wash --run "[ -s ${confdir}/reaver/reaver.db ] || install -D $out/etc/reaver.db ${confdir}/reaver/reaver.db" ''; + enableParallelBuilding = true; + + patches = [ ./parallel-build.patch ]; + meta = with lib; { description = "Brute force attack against Wifi Protected Setup"; homepage = "https://code.google.com/archive/p/reaver-wps/"; diff --git a/pkgs/tools/networking/reaver-wps/parallel-build.patch b/pkgs/tools/networking/reaver-wps/parallel-build.patch new file mode 100644 index 000000000000..086298a49d83 --- /dev/null +++ b/pkgs/tools/networking/reaver-wps/parallel-build.patch @@ -0,0 +1,11 @@ +--- src/Makefile.in 2012-01-18 10:02:40.000000000 +0100 ++++ src/Makefile.in 2022-01-27 19:29:19.324662149 +0100 +@@ -63,7 +63,7 @@ + 80211.o: globule.o sql.o builder.o crc.o + $(CC) $(CFLAGS) $(INC) 80211.c -c + +-iface.o: globule.o ++iface.o: globule.o libiw + $(CC) $(CFLAGS) iface.c -c + + sigalrm.o: globule.o