base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / ch / chainsaw / package.nix
blob5789f488985c6cdb8ac0f3c3ef3e56c2cefbd297
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   stdenv,
6   darwin,
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "chainsaw";
11   version = "2.9.2";
13   src = fetchFromGitHub {
14     owner = "WithSecureLabs";
15     repo = "chainsaw";
16     rev = "refs/tags/v${version}";
17     hash = "sha256-oKlLFKCZNBcHURVvT0i8Hfym6r30ikndV30uuxjYgDM=";
18   };
20   cargoHash = "sha256-1w3DYP69aOphoqbsZIF9aX56Lftg2niKClmImLTa5DE=";
22   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
23     darwin.apple_sdk.frameworks.CoreFoundation
24   ];
26   ldflags = [
27     "-w"
28     "-s"
29   ];
31   meta = with lib; {
32     description = "Rapidly Search and Hunt through Windows Forensic Artefacts";
33     homepage = "https://github.com/WithSecureLabs/chainsaw";
34     changelog = "https://github.com/WithSecureLabs/chainsaw/releases/tag/v${version}";
35     license = licenses.gpl3Only;
36     maintainers = with maintainers; [ fab ];
37     mainProgram = "chainsaw";
38   };