2020-04-08 09:01:09 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, buildGoModule, installShellFiles }:
|
2016-09-13 10:36:00 +00:00
|
|
|
|
2019-10-30 13:40:01 +00:00
|
|
|
buildGoModule rec {
|
2017-09-12 08:37:57 +00:00
|
|
|
pname = "cheat";
|
2020-05-12 05:58:54 +00:00
|
|
|
version = "3.10.0";
|
2016-09-13 10:36:00 +00: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;
|
2020-05-12 05:58:54 +00:00
|
|
|
sha256 = "1rrhll1i5ibxdchpdifajvsm697pilf82rbq7arn4f4pw5izrhy6";
|
2016-09-13 10:36:00 +00:00
|
|
|
};
|
|
|
|
|
2019-10-30 13:40:01 +00:00
|
|
|
subPackages = [ "cmd/cheat" ];
|
2017-11-27 09:34:23 +00:00
|
|
|
|
2020-04-08 09:01:09 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion scripts/cheat.{bash,fish,zsh}
|
|
|
|
'';
|
|
|
|
|
2020-05-12 05:58:54 +00:00
|
|
|
modSha256 = "1z4za3rivc3vqv59p5yb5c9dcpmq669rzmf4z7zilbvmgm0pbgfp";
|
2019-01-29 11:57:36 +00:00
|
|
|
|
2017-09-12 08:37:57 +00:00
|
|
|
meta = with stdenv.lib; {
|
2019-10-30 16:03:22 +00:00
|
|
|
description = "Create and view interactive cheatsheets on the command-line";
|
2017-09-12 08:37:57 +00: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 10:36:00 +00:00
|
|
|
};
|
|
|
|
}
|