Skip to content

Commit

Permalink
Account for suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thecaralice committed Apr 10, 2024
1 parent 23c02c3 commit cc22717
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkgs/tools/networking/aircrack-ng/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@ stdenv.mkDerivation rec {

src = fetchFromGitHub {
owner = "aircrack-ng";
repo = pname;
repo = "aircrack-ng";
rev = version;
hash = "sha256-niQDwiqi5GtBW5HIn0endnqPb/MqllcjsjXw4pTyFKY=";
};

postPatch = lib.optionalString stdenv.isLinux ''
substituteInPlace lib/osdep/linux.c --replace-warn /usr/local/bin ${lib.escapeShellArg wirelesstools}
substituteInPlace lib/osdep/linux.c --replace-warn /usr/local/bin ${lib.escapeShellArg (lib.makeBinPath [
wirelesstools
])}
'';

configureFlags = [
Expand Down Expand Up @@ -96,6 +98,6 @@ stdenv.mkDerivation rec {
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ caralice ];
platforms = with lib.platforms; builtins.concatLists [ linux darwin cygwin netbsd openbsd freebsd illumos ];
changelog = "https://github.com/${src.owner}/${src.repo}/blob/${src.rev}/ChangeLog";
changelog = "https://github.com/aircrack-ng/aircrack-ng/blob/${src.rev}/ChangeLog";
};
}

0 comments on commit cc22717

Please sign in to comment.