2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub
|
2020-04-08 10:01:09 +01:00
|
|
|
, buildGoModule, installShellFiles }:
|
2016-09-13 11:36:00 +01:00
|
|
|
|
2019-10-30 13:40:01 +00:00
|
|
|
buildGoModule rec {
|
2017-09-12 09:37:57 +01:00
|
|
|
pname = "cheat";
|
2021-06-14 19:42:09 +01:00
|
|
|
version = "4.2.2";
|
2016-09-13 11:36:00 +01:00
|
|
|
|
2017-11-27 09:34:23 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-03-25 08:20:40 +00:00
|
|
|
owner = "cheat";
|
2017-11-27 09:34:23 +00:00
|
|
|
repo = "cheat";
|
|
|
|
rev = version;
|
2021-06-14 19:42:09 +01:00
|
|
|
sha256 = "sha256-YKGCZm0BaFLi+kujl04B4IU1qay15XNfvelxfUkCP8o=";
|
2016-09-13 11:36:00 +01:00
|
|
|
};
|
|
|
|
|
2019-10-30 13:40:01 +00:00
|
|
|
subPackages = [ "cmd/cheat" ];
|
2017-11-27 09:34:23 +00:00
|
|
|
|
2020-04-08 10:01:09 +01:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-05-24 20:14:14 +01:00
|
|
|
installManPage doc/cheat.1
|
2020-04-08 10:01:09 +01:00
|
|
|
installShellCompletion scripts/cheat.{bash,fish,zsh}
|
|
|
|
'';
|
|
|
|
|
2020-05-01 02:59:00 +01:00
|
|
|
vendorSha256 = null;
|
2019-01-29 11:57:36 +00:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-10-30 16:03:22 +00:00
|
|
|
description = "Create and view interactive cheatsheets on the command-line";
|
2017-09-12 09:37:57 +01:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2019-01-29 11:57:36 +00:00
|
|
|
license = with licenses; [ gpl3 mit ];
|
2020-03-25 08:20:40 +00:00
|
|
|
inherit (src.meta) homepage;
|
2016-09-13 11:36:00 +01:00
|
|
|
};
|
|
|
|
}
|