libnids: fix cross build

+6
+6
pkgs/by-name/li/libnids/package.nix
··· 14 url = "mirror://sourceforge/libnids/libnids-1.24.tar.gz"; 15 sha256 = "1cblklfdfxcmy0an6xyyzx4l877xdawhjd28daqfsvrh81mb07k1"; 16 }; 17 nativeBuildInputs = [ pkg-config ]; 18 buildInputs = [ 19 libpcap
··· 14 url = "mirror://sourceforge/libnids/libnids-1.24.tar.gz"; 15 sha256 = "1cblklfdfxcmy0an6xyyzx4l877xdawhjd28daqfsvrh81mb07k1"; 16 }; 17 + 18 + postPatch = '' 19 + substituteInPlace src/Makefile.in \ 20 + --replace-fail ar '${stdenv.cc.targetPrefix}ar' 21 + ''; 22 + 23 nativeBuildInputs = [ pkg-config ]; 24 buildInputs = [ 25 libpcap