2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "evtx";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "0.8.1";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "omerbenamram";
|
|
|
|
repo = pname;
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-aa04Ia11+Ae1amc3JAtYdSWf+f/fenTt0Bny/AauaHo=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
cargoHash = "sha256-4pQP+cvKfOvRgWRFa4+/dEpBq+gfcOuEENC5aP4Cp7U=";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
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";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/omerbenamram/evtx/blob/v${version}/CHANGELOG.md";
|
2022-05-18 14:49:53 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|