2023-05-03 10:07:29 +00:00
|
|
|
{ acl
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "laurel";
|
2024-08-02 02:16:14 +00:00
|
|
|
version = "0.6.3";
|
2023-05-03 10:07:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "threathunters-io";
|
2024-03-01 18:13:51 +00:00
|
|
|
repo = "laurel";
|
2023-11-16 21:06:06 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-08-02 02:16:14 +00:00
|
|
|
hash = "sha256-vasu4ffSdiyeXGV8JUZYL3I/04UvZ/mOImdE45la9y8=";
|
2023-05-03 10:07:29 +00:00
|
|
|
};
|
|
|
|
|
2024-08-02 02:16:14 +00:00
|
|
|
cargoHash = "sha256-uQs+BUBWdbSoE3UqrSjqImVm5uwYf7XiTFtGG1BcFZI=";
|
2023-05-03 10:07:29 +00:00
|
|
|
|
2024-08-03 14:38:03 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2023-05-03 10:07:29 +00:00
|
|
|
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
|
|
|
buildInputs = [ acl ];
|
|
|
|
|
|
|
|
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/v${version}";
|
|
|
|
license = licenses.gpl3Plus;
|
2023-05-21 14:00:44 +00:00
|
|
|
maintainers = with maintainers; [ emilylange ];
|
2023-05-03 10:07:29 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|