cheat: 2.3.1 -> 2.5.1

This commit is contained in:
Jörg Thalheim 2019-01-29 11:57:36 +00:00
parent f907218f53
commit e9b9f056a8
No known key found for this signature in database
GPG Key ID: B3F5D81B0C6967C4

View File

@ -1,26 +1,33 @@
{ stdenv, python3Packages, fetchFromGitHub }: { stdenv, python3, fetchFromGitHub }:
with python3Packages; with python3.pkgs;
buildPythonApplication rec { buildPythonApplication rec {
name = "${pname}-${version}"; name = "${pname}-${version}";
pname = "cheat"; pname = "cheat";
version = "2.3.1"; version = "2.5.1";
propagatedBuildInputs = [ docopt pygments ]; propagatedBuildInputs = [ docopt pygments termcolor ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "chrisallenlane"; owner = "chrisallenlane";
repo = "cheat"; repo = "cheat";
rev = version; rev = version;
sha256 = "1dcpjvbv648r8325qjf30m8b4cyrrjbzc2kvh40zy2mbjsa755zr"; sha256 = "1i543hvg1yizamfd83bawflfcb500hvc72i59ikck8j1hjk50hsl";
}; };
# no tests available # no tests available
doCheck = false; doCheck = false;
postInstall = '' postInstall = ''
install -D man1/cheat.1.gz $out/share/man/man1/cheat.1.gz install -D man1/cheat.1.gz $out/share/man/man1/cheat.1.gz
mv $out/${python3.sitePackages}/etc $out/
mv $out/${python3.sitePackages}/usr/share/* $out/share/
rm -r $out/${python3.sitePackages}/usr
''; '';
makeWrapperArgs = [
"--suffix" "CHEAT_PATH" ":" "$out/share/cheat"
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "cheat allows you to create and view interactive cheatsheets on the command-line"; description = "cheat allows you to create and view interactive cheatsheets on the command-line";
maintainers = with maintainers; [ mic92 ]; maintainers = with maintainers; [ mic92 ];