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

25 lines
645 B
Nix
Raw Normal View History

2019-10-30 06:40:01 -07:00
{ stdenv, fetchFromGitHub, buildGoModule }:
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-03-13 03:06:51 -07:00
version = "3.0.7";
2016-09-13 03:36:00 -07:00
2017-11-27 01:34:23 -08:00
src = fetchFromGitHub {
owner = "chrisallenlane";
repo = "cheat";
rev = version;
2020-03-13 03:06:51 -07:00
sha256 = "0i5j85ciimk14kndb81qxny1ksr57sr9xdvjn7x1ibc7h6pikjn5";
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-03-13 03:06:51 -07:00
modSha256 = "1v9hvxygwvqma2j5yz7r95g34xpwb0n29hm39i89vgmvl3hy67s0";
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 ];
2019-10-30 09:03:22 -07:00
homepage = "https://github.com/chrisallenlane/cheat";
2016-09-13 03:36:00 -07:00
};
}