Files
nixpkgs/pkgs/by-name/la/laurel/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1.4 KiB
Nix

{
acl,
fetchFromGitHub,
lib,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "laurel";
version = "0.7.3";
src = fetchFromGitHub {
owner = "threathunters-io";
repo = "laurel";
tag = "v${version}";
hash = "sha256-4LIv9rdYTPPERgMT8mF6Ymdur9f4tzNkkkMHBePtAH0=";
};
cargoHash = "sha256-AgyCiCsP3iuk0mRXkFAPDbXG12jE7uXfcGblpALbpMA=";
postPatch = ''
# Upstream started to redirect aarch64-unknown-linux-gnu to aarch64-linux-gnu-gcc
# for their CI which breaks compiling on aarch64 in nixpkgs:
# error: linker `aarch64-linux-gnu-gcc` not found
rm .cargo/config.toml
'';
nativeBuildInputs = [ rustPlatform.bindgenHook ];
buildInputs = [ acl ];
checkFlags = [
# Nix' build sandbox does not allow setting ACLs:
# https://github.com/NixOS/nix/blob/2.28.3/src/libstore/unix/build/local-derivation-goal.cc#L1760-L1769
# Skip the tests that are failing with "Operation not supported (os error 95)" because of this:
"--skip=rotate::test::existing"
"--skip=rotate::test::fresh_file"
];
meta = with lib; {
description = "Transform Linux Audit logs for SIEM usage";
homepage = "https://github.com/threathunters-io/laurel";
changelog = "https://github.com/threathunters-io/laurel/releases/tag/${src.tag}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ emilylange ];
platforms = platforms.linux;
};
}