ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / ca / capslock / package.nix
blob83e599e7fe00777f7a164bee2b2bca543d0fe354
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   nix-update-script,
6 }:
8 buildGoModule rec {
9   pname = "capslock";
10   version = "0.2.6";
12   src = fetchFromGitHub {
13     owner = "google";
14     repo = "capslock";
15     rev = "v${version}";
16     hash = "sha256-8B9L/lLRxDI6/qUCbL8VM37glDFBTaqb0fGI9BYfICU=";
17   };
19   vendorHash = "sha256-gmvnpJurjhCGS3/FH6HBZ0Zwx57ArSaw5dLHtJXCFc8=";
21   subPackages = [ "cmd/capslock" ];
23   CGO_ENABLED = "0";
25   ldflags = [ "-s" ];
27   passthru.updateScript = nix-update-script { };
29   meta = {
30     description = "Capability analysis CLI for Go packages that informs users of which privileged operations a given package can access";
31     homepage = "https://github.com/google/capslock";
32     license = lib.licenses.bsd3;
33     mainProgram = "capslock";
34     maintainers = with lib.maintainers; [ katexochen ];
35   };