depot/third_party/nixpkgs/pkgs/by-name/ch/chainsaw/package.nix

39 lines
921 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "chainsaw";
version = "2.10.1";
src = fetchFromGitHub {
owner = "WithSecureLabs";
repo = "chainsaw";
rev = "refs/tags/v${version}";
hash = "sha256-ErDIfLhzCiFm3dZzr6ThjYCplfDKbALAqcu8c0gREH4=";
};
cargoHash = "sha256-WuPfYxI61wsQyOKqPF7/a3Hx9vMBCkTkoXsZczgeKpg=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.CoreFoundation
];
ldflags = [
"-w"
"-s"
];
meta = with lib; {
description = "Rapidly Search and Hunt through Windows Forensic Artefacts";
homepage = "https://github.com/WithSecureLabs/chainsaw";
changelog = "https://github.com/WithSecureLabs/chainsaw/releases/tag/v${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
mainProgram = "chainsaw";
};
}