{ lib, buildGoModule, fetchFromGitHub }: buildGoModule rec { pname = "kor"; version = "0.4.1"; src = fetchFromGitHub { owner = "yonahd"; repo = pname; rev = "v${version}"; hash = "sha256-4l19/vIvcgt7g3o6IWGHhIsXurAy6Ts4fJjs8OMZalk="; }; vendorHash = "sha256-NPmsXS7P+pCF97N8x3nQhCRoHJLMO5plNtcUqxxexVE="; preCheck = '' HOME=$(mktemp -d) export HOME ''; ldflags = [ "-s" "-w" ]; meta = with lib; { description = "A Golang Tool to discover unused Kubernetes Resources"; homepage = "https://github.com/yonahd/kor"; changelog = "https://github.com/yonahd/kor/releases/tag/v${version}"; license = licenses.mit; maintainers = [ maintainers.ivankovnatsky ]; mainProgram = "kor"; }; }