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
68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
libpcap,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libdaq";
|
|
version = "3.0.21";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "snort3";
|
|
repo = "libdaq";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-ifG7Ccuwus+ftTzjTrvgkGDAxEhYT9pJVrILn7K17P8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libpcap
|
|
stdenv.cc.cc # libstdc++
|
|
];
|
|
|
|
outputs = [
|
|
"lib"
|
|
"dev"
|
|
"out"
|
|
];
|
|
|
|
autoreconfPhase = ''
|
|
./bootstrap
|
|
'';
|
|
|
|
postInstall = ''
|
|
# remove build directory (/build/**, or /tmp/nix-build-**) from RPATHs
|
|
for f in "$out"/bin/*; do
|
|
local nrp="$(patchelf --print-rpath "$f" | sed -E 's@(:|^)'$NIX_BUILD_TOP'[^:]*:@\1@g')"
|
|
patchelf --set-rpath "$nrp" "$f"
|
|
done
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Data AcQuisition library (libDAQ), for snort packet I/O";
|
|
homepage = "https://www.snort.org";
|
|
maintainers = with lib.maintainers; [
|
|
aycanirican
|
|
brianmcgillion
|
|
];
|
|
changelog = "https://github.com/snort3/libdaq/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.gpl2;
|
|
outputsToInstall = [
|
|
"lib"
|
|
"dev"
|
|
];
|
|
platforms = with lib.platforms; linux;
|
|
};
|
|
})
|