depot/third_party/nixpkgs/pkgs/by-name/ca/capslock/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

36 lines
833 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
}:
buildGoModule rec {
pname = "capslock";
version = "0.2.5";
src = fetchFromGitHub {
owner = "google";
repo = "capslock";
rev = "v${version}";
hash = "sha256-w2dB8DUCjbuzdEfX4nmaGbf9TZH58t+NZtyMoBHVG8I=";
};
vendorHash = "sha256-ZRDoKB3/oxJhVFNWT71sKu8WbvIUyvXNKY1hD8ljo5U=";
subPackages = [ "cmd/capslock" ];
CGO_ENABLED = "0";
ldflags = [ "-s" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Capability analysis CLI for Go packages that informs users of which privileged operations a given package can access";
homepage = "https://github.com/google/capslock";
license = lib.licenses.bsd3;
mainProgram = "capslock";
maintainers = with lib.maintainers; [ katexochen ];
};
}