nixpkgs/pkgs/applications/misc/cheat/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
753 B
Nix
Raw Normal View History

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