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