{ lib, fetchFromGitHub , buildGoModule, installShellFiles }: buildGoModule rec { pname = "cheat"; version = "4.3.1"; src = fetchFromGitHub { owner = "cheat"; repo = "cheat"; rev = version; sha256 = "sha256-Umbe3XoCQV+q37ROeIWQUZtTe1Nu59Z5Hxt2nc7/l64="; }; subPackages = [ "cmd/cheat" ]; nativeBuildInputs = [ installShellFiles ]; postInstall = '' installManPage doc/cheat.1 installShellCompletion scripts/cheat.{bash,fish,zsh} ''; vendorSha256 = null; doCheck = false; meta = with lib; { description = "Create and view interactive cheatsheets on the command-line"; maintainers = with maintainers; [ mic92 ]; license = with licenses; [ gpl3 mit ]; inherit (src.meta) homepage; }; }