1{ lib, fetchFromGitHub
2, buildGoModule, installShellFiles }:
3
4buildGoModule rec {
5 pname = "cheat";
6 version = "4.2.3";
7
8 src = fetchFromGitHub {
9 owner = "cheat";
10 repo = "cheat";
11 rev = version;
12 sha256 = "sha256-F0p309rY0PeeOU1K9Had6qI6DCHgzauuuTjMfWoZYBQ=";
13 };
14
15 subPackages = [ "cmd/cheat" ];
16
17 nativeBuildInputs = [ installShellFiles ];
18
19 postInstall = ''
20 installManPage doc/cheat.1
21 installShellCompletion scripts/cheat.{bash,fish,zsh}
22 '';
23
24 vendorSha256 = null;
25
26 doCheck = false;
27
28 meta = with lib; {
29 description = "Create and view interactive cheatsheets on the command-line";
30 maintainers = with maintainers; [ mic92 ];
31 license = with licenses; [ gpl3 mit ];
32 inherit (src.meta) homepage;
33 };
34}