{ lib, buildGoModule, fetchFromGitHub }: buildGoModule rec { pname = "kubectl-gadget"; version = "0.16.0"; src = fetchFromGitHub { owner = "inspektor-gadget"; repo = "inspektor-gadget"; rev = "v${version}"; hash = "sha256:0ijqnlh234pqkx6yzz2kxdnj8hnqarp2scq7gfsp8wpq7s42ivg8"; }; vendorHash = "sha256-IbqE0aI7utYuu1XpQijEFVu/IpUDK6CQLu7g8GUR4e8="; 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 ]; }; }