{ lib, buildGoModule, fetchFromGitHub }: buildGoModule rec { pname = "kubectl-gadget"; version = "0.23.1"; src = fetchFromGitHub { owner = "inspektor-gadget"; repo = "inspektor-gadget"; rev = "v${version}"; hash = "sha256-rlsjkjJg0IRGRBpTGhKTpMVQgxhizN7P+py2R+sczrk="; }; vendorHash = "sha256-+DXQ4Rgd7egKsDyU0/WQgninlsjPHFAoHy/sSQYE1p8="; 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 ]; }; }