suricata: switch from hyperscan to vectorscan (#402330)

authored by Florian Klink and committed by GitHub 0344f99d 9552ed49

+4 -7
+4 -7
pkgs/by-name/su/suricata/package.nix
··· 8 8 makeWrapper, 9 9 elfutils, 10 10 file, 11 - hyperscan, 12 11 jansson, 13 12 libbpf_0, 14 13 libcap_ng, ··· 25 24 nspr, 26 25 pcre2, 27 26 python3, 27 + vectorscan, 28 28 zlib, 29 29 redisSupport ? true, 30 30 valkey, ··· 36 36 }: 37 37 let 38 38 libmagic = file; 39 - hyperscanSupport = stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux"; 40 39 in 41 40 stdenv.mkDerivation rec { 42 41 pname = "suricata"; ··· 83 82 nspr 84 83 pcre2 85 84 python3 85 + vectorscan 86 86 zlib 87 87 ] 88 - ++ lib.optional hyperscanSupport hyperscan 89 88 ++ lib.optionals redisSupport [ 90 89 valkey 91 90 hiredis ··· 121 120 "--enable-unix-socket" 122 121 "--localstatedir=/var" 123 122 "--sysconfdir=/etc" 123 + "--with-libhs-includes=${lib.getDev vectorscan}/include/hs" 124 + "--with-libhs-libraries=${lib.getLib vectorscan}/lib" 124 125 "--with-libnet-includes=${libnet}/include" 125 126 "--with-libnet-libraries=${libnet}/lib" 126 - ] 127 - ++ lib.optionals hyperscanSupport [ 128 - "--with-libhs-includes=${hyperscan.dev}/include/hs" 129 - "--with-libhs-libraries=${hyperscan}/lib" 130 127 ] 131 128 ++ lib.optional redisSupport "--enable-hiredis" 132 129 ++ lib.optionals rustSupport [