biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / misc / cheat / default.nix
blobef8780f1e88b589a612fa55ccadd2383b167b49d
1 { lib, fetchFromGitHub
2 , buildGoModule, installShellFiles }:
4 buildGoModule rec {
5   pname = "cheat";
6   version = "4.4.2";
8   src = fetchFromGitHub {
9     owner = "cheat";
10     repo = "cheat";
11     rev = version;
12     sha256 = "sha256-GUU6VWfTmNS6ny12HnMr3uQmS7HI86Oupcmqx0MVAvE=";
13   };
15   subPackages = [ "cmd/cheat" ];
17   nativeBuildInputs = [ installShellFiles ];
19   postInstall = ''
20     installManPage doc/cheat.1
21     installShellCompletion scripts/cheat.{bash,fish,zsh}
22   '';
24   vendorHash = null;
26   doCheck = false;
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     mainProgram = "cheat";
34   };