Skip to content

Commit dd2f2bc

Browse files
committedMay 5, 2017
aircrack-ng: add unreleased patch for openssl 1.1
1 parent 3d4ba40 commit dd2f2bc

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed
 

‎pkgs/tools/networking/aircrack-ng/default.nix

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools, libnl, pkgconfig }:
1+
{ stdenv, fetchurl, fetchpatch, libpcap, openssl, zlib, wirelesstools, libnl, pkgconfig }:
22

33
stdenv.mkDerivation rec {
44
name = "aircrack-ng-1.2-rc4";
@@ -10,10 +10,20 @@ stdenv.mkDerivation rec {
1010

1111
buildInputs = [ libpcap openssl zlib libnl pkgconfig ];
1212

13-
patchPhase = ''
13+
patches = [
14+
(fetchpatch {
15+
url = "https://trac.aircrack-ng.org/changeset/2882?format=diff&new=2882";
16+
name = "openssl-1.1.patch";
17+
sha256 = "11vk89jyd42l13i9y8l2p92p0cf4cdza40qpq75avvb7zqh3c2yi";
18+
stripLen = 2;
19+
addPrefixes = true;
20+
})
21+
];
22+
23+
postPatch = ''
1424
sed -e 's@^prefix.*@prefix = '$out@ -i common.mak
1525
sed -e 's@/usr/local/bin@'${wirelesstools}@ -i src/osdep/linux.c
16-
'';
26+
'';
1727

1828
meta = with stdenv.lib; {
1929
description = "Wireless encryption cracking tools";

‎pkgs/top-level/all-packages.nix

+1-3
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,7 @@ with pkgs;
392392

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

395-
aircrack-ng = callPackage ../tools/networking/aircrack-ng {
396-
openssl = openssl_1_0_2;
397-
};
395+
aircrack-ng = callPackage ../tools/networking/aircrack-ng { };
398396

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

0 commit comments

Comments
 (0)
Please sign in to comment.