nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "gowitness";
9 version = "3.0.5";
10
11 src = fetchFromGitHub {
12 owner = "sensepost";
13 repo = "gowitness";
14 tag = version;
15 hash = "sha256-oEEq4f5G0kOpaj4KORbVhZqW4RPkBXC33PXYUHhoMxo=";
16 };
17
18 vendorHash = "sha256-2hG+93LzJ+kUVCOXFGk83Asvn7zLWq2BSqrq+eOJhQ0=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 ];
24
25 meta = with lib; {
26 description = "Web screenshot utility";
27 homepage = "https://github.com/sensepost/gowitness";
28 changelog = "https://github.com/sensepost/gowitness/releases/tag/${version}";
29 license = licenses.gpl3Only;
30 maintainers = with maintainers; [ fab ];
31 mainProgram = "gowitness";
32 };
33}