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