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