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

31 lines
799 B
Nix
Raw Normal View History

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