2017-11-27 09:34:23 +00:00
|
|
|
{ stdenv, python3Packages, fetchFromGitHub }:
|
2016-09-13 11:36:00 +01:00
|
|
|
|
2017-09-12 09:37:57 +01:00
|
|
|
with python3Packages;
|
|
|
|
buildPythonApplication rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "cheat";
|
2018-04-08 02:50:37 +01:00
|
|
|
version = "2.2.3";
|
2016-09-13 11:36:00 +01:00
|
|
|
|
2017-11-27 09:34:23 +00:00
|
|
|
propagatedBuildInputs = [ docopt pygments ];
|
2016-09-13 11:36:00 +01:00
|
|
|
|
2017-11-27 09:34:23 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chrisallenlane";
|
|
|
|
repo = "cheat";
|
|
|
|
rev = version;
|
2018-04-08 02:50:37 +01:00
|
|
|
sha256 = "1p9a54fax3b1ilqcwdlccy08ww3igwsyzcyikqivaxj5p6mqq6wl";
|
2016-09-13 11:36:00 +01:00
|
|
|
};
|
2016-11-30 20:05:01 +00:00
|
|
|
# no tests available
|
|
|
|
doCheck = false;
|
2016-09-13 11:36:00 +01:00
|
|
|
|
2017-11-27 09:34:23 +00:00
|
|
|
postInstall = ''
|
|
|
|
install -D man1/cheat.1.gz $out/share/man/man1/cheat.1.gz
|
|
|
|
'';
|
|
|
|
|
2017-09-12 09:37:57 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-09-13 11:36:00 +01:00
|
|
|
description = "cheat allows you to create and view interactive cheatsheets on the command-line";
|
2017-09-12 09:37:57 +01:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
|
|
|
license = with licenses; [gpl3 mit];
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/chrisallenlane/cheat;
|
2016-09-13 11:36:00 +01:00
|
|
|
};
|
|
|
|
}
|