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