2024-09-26 11:04:55 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gowitness";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "3.0.3";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sensepost";
|
2023-11-16 04:20:00 +00:00
|
|
|
repo = "gowitness";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-yKG4qLjeZThFEMqMnUv4ryvM2e3uH5GLuVP3oa6XHtE=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
vendorHash = "sha256-PjbC10Dh3tDF0mP2k4ei6ZSS3ND2wAaB1+Llmj37TR8=";
|
2022-10-06 18:32:54 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Web screenshot utility";
|
|
|
|
homepage = "https://github.com/sensepost/gowitness";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/sensepost/gowitness/releases/tag/${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-09-26 11:04:55 +00:00
|
|
|
mainProgram = "gowitness";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|