mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-05 22:06:00 +03:00
35 lines
753 B
Nix
35 lines
753 B
Nix
{ lib, fetchFromGitHub
|
|
, buildGoModule, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "cheat";
|
|
version = "4.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cheat";
|
|
repo = "cheat";
|
|
rev = version;
|
|
sha256 = "sha256-lEMwPGXvgI8wtXska9ngAy9R2tr41Jq5yO6xQk9V5n4=";
|
|
};
|
|
|
|
subPackages = [ "cmd/cheat" ];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
installManPage doc/cheat.1
|
|
installShellCompletion scripts/cheat.{bash,fish,zsh}
|
|
'';
|
|
|
|
vendorSha256 = null;
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Create and view interactive cheatsheets on the command-line";
|
|
maintainers = with maintainers; [ mic92 ];
|
|
license = with licenses; [ gpl3 mit ];
|
|
inherit (src.meta) homepage;
|
|
};
|
|
}
|