Unverified Commit 6a458ffb authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

angryoxide: init at 0.8.28 (#329021)

parents 835524c6 5aa70730
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -8489,6 +8489,12 @@
    githubId = 12715461;
    name = "Anders Bo Rasmussen";
  };
  fvckgrimm = {
    email = "nixpkgs@grimm.wtf";
    github = "fvckgrimm";
    githubId = 55907409;
    name = "Grimm";
  };
  fwc = {
    github = "fwc";
    githubId = 29337229;
+59 −0
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  pkg-config,
  libxkbcommon,
  sqlite,
  zlib,
  wayland,
}:

let
  libwifi = fetchFromGitHub {
    owner = "Ragnt";
    repo = "libwifi";
    rev = "71268e1898ad88b8b5d709e186836db417b33e81";
    hash = "sha256-2X/TZyLX9Tb54c6Sdla4bsWdq05NU72MVSuPvNfxySk=";
  };
in
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "angryoxide";
  version = "0.8.32";

  src = fetchFromGitHub {
    owner = "Ragnt";
    repo = "AngryOxide";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Sla5lvyqZho9JE4QVS9r0fx5+DVlU90c8OSfO4/f0B4=";
  };

  postPatch = ''
    rm -r libs/libwifi
    ln -s ${libwifi} libs/libwifi
  '';

  useFetchCargoVendor = true;
  cargoHash = "sha256-mry4l0a7DZOWkrChU40OVRCBjKwI39cyZtvEBA5tro0=";

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    libxkbcommon
    sqlite
    wayland
    zlib
  ];

  meta = {
    description = "802.11 Attack Tool";
    changelog = "https://github.com/Ragnt/AngryOxide/releases/tag/v${finalAttrs.version}";
    homepage = "https://github.com/Ragnt/AngryOxide/";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ fvckgrimm ];
    mainProgram = "angryoxide";
    platforms = lib.platforms.linux;
  };
})