2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
nix-update-script,
|
2024-04-21 15:54:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "capslock";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "0.2.5";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "capslock";
|
|
|
|
rev = "v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-w2dB8DUCjbuzdEfX4nmaGbf9TZH58t+NZtyMoBHVG8I=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
vendorHash = "sha256-ZRDoKB3/oxJhVFNWT71sKu8WbvIUyvXNKY1hD8ljo5U=";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
subPackages = [ "cmd/capslock" ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
CGO_ENABLED = "0";
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
ldflags = [ "-s" ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = {
|
2024-04-21 15:54:59 +00:00
|
|
|
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";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "capslock";
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with lib.maintainers; [ katexochen ];
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
}
|