normcap: 0.5.8 -> 0.5.9 (#355312)
[NixPkgs.git] / pkgs / servers / monitoring / laurel / default.nix
blob54d38a52c6165cda5204dc86ca12f73ca0e4bdd4
1 { acl
2 , fetchFromGitHub
3 , lib
4 , rustPlatform
5 }:
7 rustPlatform.buildRustPackage rec {
8   pname = "laurel";
9   version = "0.6.3";
11   src = fetchFromGitHub {
12     owner = "threathunters-io";
13     repo = "laurel";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-vasu4ffSdiyeXGV8JUZYL3I/04UvZ/mOImdE45la9y8=";
16   };
18   cargoHash = "sha256-uQs+BUBWdbSoE3UqrSjqImVm5uwYf7XiTFtGG1BcFZI=";
20   postPatch = ''
21     # Upstream started to redirect aarch64-unknown-linux-gnu to aarch64-linux-gnu-gcc
22     # for their CI which breaks compiling on aarch64 in nixpkgs:
23     #  error: linker `aarch64-linux-gnu-gcc` not found
24     rm .cargo/config.toml
25   '';
27   nativeBuildInputs = [ rustPlatform.bindgenHook ];
28   buildInputs = [ acl ];
30   meta = with lib; {
31     description = "Transform Linux Audit logs for SIEM usage";
32     homepage = "https://github.com/threathunters-io/laurel";
33     changelog = "https://github.com/threathunters-io/laurel/releases/tag/v${version}";
34     license = licenses.gpl3Plus;
35     maintainers = with maintainers; [ emilylange ];
36     platforms = platforms.linux;
37   };