Skip to content

Commit

Permalink
aircrack-ng: add unreleased patch for openssl 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed May 5, 2017
1 parent 3d4ba40 commit dd2f2bc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
16 changes: 13 additions & 3 deletions pkgs/tools/networking/aircrack-ng/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools, libnl, pkgconfig }:
{ stdenv, fetchurl, fetchpatch, libpcap, openssl, zlib, wirelesstools, libnl, pkgconfig }:

stdenv.mkDerivation rec {
name = "aircrack-ng-1.2-rc4";
Expand All @@ -10,10 +10,20 @@ stdenv.mkDerivation rec {

buildInputs = [ libpcap openssl zlib libnl pkgconfig ];

patchPhase = ''
patches = [
(fetchpatch {
url = "https://trac.aircrack-ng.org/changeset/2882?format=diff&new=2882";
name = "openssl-1.1.patch";
sha256 = "11vk89jyd42l13i9y8l2p92p0cf4cdza40qpq75avvb7zqh3c2yi";
stripLen = 2;
addPrefixes = true;
})
];

postPatch = ''
sed -e 's@^prefix.*@prefix = '$out@ -i common.mak
sed -e 's@/usr/local/bin@'${wirelesstools}@ -i src/osdep/linux.c
'';
'';

meta = with stdenv.lib; {
description = "Wireless encryption cracking tools";
Expand Down
4 changes: 1 addition & 3 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,7 @@ with pkgs;

aide = callPackage ../tools/security/aide { };

aircrack-ng = callPackage ../tools/networking/aircrack-ng {
openssl = openssl_1_0_2;
};
aircrack-ng = callPackage ../tools/networking/aircrack-ng { };

airfield = callPackage ../tools/networking/airfield { };

Expand Down

0 comments on commit dd2f2bc

Please sign in to comment.