37 lines
878 B
Nix
37 lines
878 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "evtx";
|
|
version = "0.8.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "omerbenamram";
|
|
repo = "evtx";
|
|
tag = "v${version}";
|
|
hash = "sha256-qDJc8QL1nlbV9iIXZYh38N1giz6uEZtt/hjaZWE6JbE=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-aHc4u2sW2TIK2P/P9MdR0lgTKbY1ruevCRxghW/dii0=";
|
|
|
|
postPatch = ''
|
|
# CLI tests will fail in the sandbox
|
|
rm tests/test_cli_interactive.rs
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Parser for the Windows XML Event Log (EVTX) format";
|
|
homepage = "https://github.com/omerbenamram/evtx";
|
|
changelog = "https://github.com/omerbenamram/evtx/blob/v${version}/CHANGELOG.md";
|
|
license = with licenses; [
|
|
asl20 # or
|
|
mit
|
|
];
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "evtx_dump";
|
|
};
|
|
}
|