Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage (finalAttrs: {
8 pname = "chainsaw";
9 version = "2.12.2";
10
11 src = fetchFromGitHub {
12 owner = "WithSecureLabs";
13 repo = "chainsaw";
14 tag = "v${finalAttrs.version}";
15 hash = "sha256-SoQXGpkMrE0vno0dJ00ebB0oR1sDVlgWRSgKQoHlv2A=";
16 };
17
18 cargoHash = "sha256-ncf5fRf9NulcWTOuRE2rdAOIyvz5YEgpB1j/Rfj8vDk=";
19
20 ldflags = [
21 "-w"
22 "-s"
23 ];
24
25 checkFlags = [
26 # failed
27 "--skip=analyse_srum_database_json"
28 "--skip=search_jq_simple_string"
29 "--skip=search_q_jsonl_simple_string"
30 "--skip=search_q_simple_string"
31 ];
32
33 meta = {
34 description = "Rapidly Search and Hunt through Windows Forensic Artefacts";
35 homepage = "https://github.com/WithSecureLabs/chainsaw";
36 changelog = "https://github.com/WithSecureLabs/chainsaw/releases/tag/v${finalAttrs.version}";
37 license = lib.licenses.gpl3Only;
38 maintainers = with lib.maintainers; [ fab ];
39 mainProgram = "chainsaw";
40 };
41})