Merge pull request #33407 from corpix/fix/airmon-start

Fixed airmon complaining about tools

authored by Orivej Desh and committed by GitHub 8b697c8f bc7f0162

+11 -4
+11 -4
pkgs/tools/networking/aircrack-ng/default.nix
··· 1 - { stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools, libnl, pkgconfig }: 1 + { stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools 2 + , iw, ethtool, pciutils, libnl, pkgconfig, makeWrapper }: 2 3 3 4 stdenv.mkDerivation rec { 4 5 name = "aircrack-ng-1.2-rc4"; ··· 8 9 sha256 = "0dpzx9kddxpgzmgvdpl3rxn0jdaqhm5wxxndp1xd7d75mmmc2fnr"; 9 10 }; 10 11 11 - nativeBuildInputs = [ pkgconfig ]; 12 - buildInputs = [ libpcap openssl zlib libnl ]; 12 + nativeBuildInputs = [ pkgconfig makeWrapper ]; 13 + buildInputs = [ libpcap openssl zlib libnl iw ethtool pciutils ]; 13 14 14 15 patchPhase = '' 15 16 sed -e 's@^prefix.*@prefix = '$out@ -i common.mak 16 17 sed -e 's@/usr/local/bin@'${wirelesstools}@ -i src/osdep/linux.c 17 - ''; 18 + ''; 19 + 20 + postFixup = '' 21 + wrapProgram $out/bin/airmon-ng --prefix PATH : ${stdenv.lib.makeBinPath [ 22 + ethtool iw pciutils 23 + ]} 24 + ''; 18 25 19 26 meta = with stdenv.lib; { 20 27 description = "Wireless encryption cracking tools";