1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "legitify";
8 version = "0.1.5";
9
10 src = fetchFromGitHub {
11 owner = "Legit-Labs";
12 repo = pname;
13 rev = "v${version}";
14 hash = "sha256-Sr6P5S5+DqbP0ihCj97l84739/NRAlYJLnXp4B5gHNE=";
15 };
16
17 vendorHash = "sha256-EJMXzWrOXFl7JFYBp/XAcHLcNyWCKbOBAyo/Yf2mh5s=";
18
19 ldflags = [
20 "-w"
21 "-s"
22 "-X github.com/Legit-Labs/legitify/internal/version.Version=${version}"
23 ];
24
25 meta = with lib; {
26 description = "Tool to detect and remediate misconfigurations and security risks of GitHub assets";
27 homepage = "https://github.com/Legit-Labs/legitify";
28 changelog = "https://github.com/Legit-Labs/legitify/releases/tag/v${version}";
29 license = licenses.asl20;
30 maintainers = with maintainers; [ fab ];
31 };
32}