Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
71 lines
1.3 KiB
Nix
71 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
libdaq,
|
|
libdnet,
|
|
flex,
|
|
hwloc,
|
|
luajit,
|
|
openssl,
|
|
libpcap,
|
|
pcre2,
|
|
pkg-config,
|
|
zlib,
|
|
xz,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "snort";
|
|
version = "3.9.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "snort3";
|
|
repo = "snort3";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-YZCS2w4T9XskydnC4C2EMies9cUklvL56Umdw9EogLo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
libdaq
|
|
pkg-config
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
libdaq
|
|
libpcap
|
|
stdenv.cc.cc # libstdc++
|
|
libdnet
|
|
flex
|
|
hwloc
|
|
luajit
|
|
openssl
|
|
libpcap
|
|
pcre2
|
|
zlib
|
|
xz
|
|
];
|
|
|
|
# Patch that is tracking upstream PR https://github.com/snort3/snort3/pull/399
|
|
patches = [ ./0001-cmake-fix-pkg-config-path-for-libdir.patch ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Network intrusion prevention and detection system (IDS/IPS)";
|
|
homepage = "https://www.snort.org";
|
|
maintainers = with lib.maintainers; [
|
|
aycanirican
|
|
brianmcgillion
|
|
];
|
|
changelog = "https://github.com/snort3/snort3/blob/${finalAttrs.src.rev}/ChangeLog.md";
|
|
license = lib.licenses.gpl2;
|
|
platforms = with lib.platforms; linux;
|
|
};
|
|
})
|