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

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

40 lines
920 B
Nix
Raw Normal View History

2024-04-16 08:54:43 +00:00
{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
darwin,
2023-06-20 21:26:39 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "chainsaw";
2024-07-13 09:48:12 +00:00
version = "2.9.2";
2023-06-20 21:26:39 +00:00
src = fetchFromGitHub {
owner = "WithSecureLabs";
repo = "chainsaw";
rev = "refs/tags/v${version}";
2024-07-13 09:48:12 +00:00
hash = "sha256-oKlLFKCZNBcHURVvT0i8Hfym6r30ikndV30uuxjYgDM=";
2023-06-20 21:26:39 +00:00
};
2024-07-13 09:48:12 +00:00
cargoHash = "sha256-1w3DYP69aOphoqbsZIF9aX56Lftg2niKClmImLTa5DE=";
2023-06-20 21:26:39 +00:00
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.CoreFoundation
];
2023-06-20 21:26:39 +00:00
2024-04-16 08:54:26 +00:00
ldflags = [
"-w"
"-s"
];
2023-06-20 21:26:39 +00:00
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 ];
2024-04-16 08:54:26 +00:00
mainProgram = "chainsaw";
2023-06-20 21:26:39 +00:00
};
}