Unverified Commit aac95b2e authored by Michael Daniels's avatar Michael Daniels Committed by GitHub
Browse files

thc-ipv6: `fix gcc-15` build (#485149)

parents 7c040ba5 3dd9c831
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  libpcap,
  openssl,
  libnetfilter_queue,
@@ -18,6 +19,16 @@ stdenv.mkDerivation (finalAttrs: {
    sha256 = "07kwika1zdq62s5p5z94xznm77dxjxdg8k0hrg7wygz50151nzmx";
  };

  patches = [
    # Fix gcc-15 build failure:
    #   https://github.com/vanhauser-thc/thc-ipv6/pull/53
    (fetchpatch {
      name = "gcc-15.patch";
      url = "https://github.com/vanhauser-thc/thc-ipv6/commit/c9617d5638196bd88336225a6abdfd45c3df0bcf.patch";
      hash = "sha256-4+LmRsDInzzNFHvj8WK+r1fKeoLggQW7yrahC1d6WCs=";
    })
  ];

  buildInputs = [
    libpcap
    openssl
@@ -29,6 +40,8 @@ stdenv.mkDerivation (finalAttrs: {
    "PREFIX=$(out)"
  ];

  enableParallelBuilding = true;

  meta = {
    description = "IPv6 attack toolkit";
    homepage = "https://github.com/vanhauser-thc/thc-ipv6";