nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule (finalAttrs: {
8 pname = "falcoctl";
9 version = "0.11.4";
10
11 src = fetchFromGitHub {
12 owner = "falcosecurity";
13 repo = "falcoctl";
14 tag = "v${finalAttrs.version}";
15 hash = "sha256-BEnThboYmcZKL1o6Js8zHWvbU1OSH7BRcohBzlqNZKI=";
16 };
17
18 vendorHash = "sha256-SIEd/YVwEF4FleudzvYoOW2GnIflKMYRDEiWSv77H7o=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 "-X github.com/falcosecurity/falcoctl/cmd/version.semVersion=${finalAttrs.version}"
24 ];
25
26 # require network
27 doCheck = false;
28
29 meta = {
30 description = "Administrative tooling for Falco";
31 mainProgram = "falcoctl";
32 homepage = "https://github.com/falcosecurity/falcoctl";
33 license = lib.licenses.asl20;
34 maintainers = with lib.maintainers; [
35 developer-guy
36 kranurag7
37 LucaGuerra
38 ];
39 };
40})