about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/legitify/default.nix
blob: 8a6e9387fed3bcd0339f9b0eb21ce42365dd79b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "legitify";
  version = "0.1.5";

  src = fetchFromGitHub {
    owner = "Legit-Labs";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-Sr6P5S5+DqbP0ihCj97l84739/NRAlYJLnXp4B5gHNE=";
  };

  vendorHash = "sha256-EJMXzWrOXFl7JFYBp/XAcHLcNyWCKbOBAyo/Yf2mh5s=";

  ldflags = [
    "-w"
    "-s"
    "-X github.com/Legit-Labs/legitify/internal/version.Version=${version}"
  ];

  meta = with lib; {
    description = "Tool to detect and remediate misconfigurations and security risks of GitHub assets";
    homepage = "https://github.com/Legit-Labs/legitify";
    changelog = "https://github.com/Legit-Labs/legitify/releases/tag/v${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ fab ];
  };
}