nixpkgs/pkgs/tools/security/evtx/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
724 B
Nix
Raw Normal View History

2022-05-10 21:45:01 +00:00
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "evtx";
2022-08-29 18:49:06 +00:00
version = "0.8.0";
2022-05-10 21:45:01 +00:00
src = fetchFromGitHub {
owner = "omerbenamram";
repo = pname;
rev = "v${version}";
2022-08-29 18:49:06 +00:00
hash = "sha256-iexSMcD4XHEYeVWWQXQ7VLZwtUQeEkvrLxMXuxYuxts=";
2022-05-10 21:45:01 +00:00
};
2022-08-29 18:49:06 +00:00
cargoSha256 = "sha256-6dDv4+yEKxFjbguMfQxPm18PgZ2DC9IVbmpw2N94mEo=";
2022-05-10 21:45:01 +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";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ fab ];
};
}