depot/third_party/nixpkgs/pkgs/servers/monitoring/laurel/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

38 lines
1 KiB
Nix

{ acl
, fetchFromGitHub
, lib
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "laurel";
version = "0.6.3";
src = fetchFromGitHub {
owner = "threathunters-io";
repo = "laurel";
rev = "refs/tags/v${version}";
hash = "sha256-vasu4ffSdiyeXGV8JUZYL3I/04UvZ/mOImdE45la9y8=";
};
cargoHash = "sha256-uQs+BUBWdbSoE3UqrSjqImVm5uwYf7XiTFtGG1BcFZI=";
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 ];
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;
maintainers = with maintainers; [ emilylange ];
platforms = platforms.linux;
};
}