37 lines
817 B
Nix
37 lines
817 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kubectl-gadget";
|
|
version = "0.20.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "inspektor-gadget";
|
|
repo = "inspektor-gadget";
|
|
rev = "v${version}";
|
|
hash = "sha256-cwzxjK278xMqXwMQLhRhXWR2HhCKYOBMAiM4Y1B7Etk=";
|
|
};
|
|
|
|
vendorHash = "sha256-lBOZe74SWMv+z3quIx8NEK6lqygiQAbiU4AvzuXcOKg=";
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
ldflags = [
|
|
"-s" "-w"
|
|
"-X main.version=v${version}"
|
|
"-extldflags=-static"
|
|
];
|
|
|
|
tags = [
|
|
"withoutebpf"
|
|
];
|
|
|
|
subPackages = [ "cmd/kubectl-gadget" ];
|
|
|
|
meta = with lib; {
|
|
description = "A collection of gadgets for troubleshooting Kubernetes applications using eBPF";
|
|
homepage = "https://inspektor-gadget.io";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ kranurag7 ];
|
|
};
|
|
}
|