nixpkgs/pkgs/development/tools/legitify/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

34 lines
837 B
Nix

{ 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";
mainProgram = "legitify";
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 ];
};
}