cheat: 2.2.1 -> 2.2.2

+12 -6
+12 -6
pkgs/applications/misc/cheat/default.nix
··· 1 - { stdenv, python3Packages, fetchurl }: 1 + { stdenv, python3Packages, fetchFromGitHub }: 2 2 3 3 with python3Packages; 4 4 buildPythonApplication rec { 5 5 name = "${pname}-${version}"; 6 6 pname = "cheat"; 7 - version = "2.2.1"; 7 + version = "2.2.2"; 8 8 9 - propagatedBuildInputs = with python3Packages; [ docopt pygments ]; 9 + propagatedBuildInputs = [ docopt pygments ]; 10 10 11 - src = fetchPypi { 12 - inherit pname version; 13 - sha256 = "0w4k1h02p2gjv5wcr1c7r0ynb7v50qajx4hpyxz0ndh96f6x30pl"; 11 + src = fetchFromGitHub { 12 + owner = "chrisallenlane"; 13 + repo = "cheat"; 14 + rev = version; 15 + sha256 = "1da4m4n6nivjakpll6jj0aszrv24g2zax74034lzpv3pbh84fvas"; 14 16 }; 15 17 # no tests available 16 18 doCheck = false; 19 + 20 + postInstall = '' 21 + install -D man1/cheat.1.gz $out/share/man/man1/cheat.1.gz 22 + ''; 17 23 18 24 meta = with stdenv.lib; { 19 25 description = "cheat allows you to create and view interactive cheatsheets on the command-line";