git.iko.soy/typeable/nixpkgs
on master help sign in
cheat: 2.5.1 -> 3.0.3 (#72299)

cheat: 2.5.1 -> 3.0.3

commit970a22ce1542c0dc1d1efb5005d2990f70d73e97 authorJörg Thalheim <Mic92@users.noreply.github.com> dateWed 30 Oct 2019, 18:49 (7 years ago) parent60f50b620367c2
1 file changed+8−20
pkgs/applications/misc/cheat/default.nix+8−20
pkgs/applications/misc/cheat/default.nix+8−20
@@ -1,36 +1,24 @@
1−{ stdenv, python3, fetchFromGitHub }:
1+{ stdenv, fetchFromGitHub, buildGoModule }:
22
3−with python3.pkgs;
4−buildPythonApplication rec {
3+buildGoModule rec {
54 pname = "cheat";
6− version = "2.5.1";
7−
8− propagatedBuildInputs = [ docopt pygments termcolor ];
5+ version = "3.0.3";
96
107 src = fetchFromGitHub {
118 owner = "chrisallenlane";
129 repo = "cheat";
1310 rev = version;
14− sha256 = "1i543hvg1yizamfd83bawflfcb500hvc72i59ikck8j1hjk50hsl";
11+ sha256 = "19w1admdcgld9vlc4fsyc5d9bi6rmwhr2x2ji43za2vjlk34hnnx";
1512 };
16− # no tests available
17− doCheck = false;
1813
19− postInstall = ''
20− install -D man1/cheat.1.gz $out/share/man/man1/cheat.1.gz
21− mv $out/${python3.sitePackages}/etc $out/
22− mv $out/${python3.sitePackages}/usr/share/* $out/share/
23− rm -r $out/${python3.sitePackages}/usr
24− '';
14+ subPackages = [ "cmd/cheat" ];
2515
26− makeWrapperArgs = [
27− "--suffix" "CHEAT_PATH" ":" "$out/share/cheat"
28− ];
16+ modSha256 = "189cqnfl403f4lk7g9v68mwk93ciglqli639dk4x9091lvn5gq5q";
2917
3018 meta = with stdenv.lib; {
31− description = "cheat allows you to create and view interactive cheatsheets on the command-line";
19+ description = "Create and view interactive cheatsheets on the command-line";
3220 maintainers = with maintainers; [ mic92 ];
3321 license = with licenses; [ gpl3 mit ];
34− homepage = https://github.com/chrisallenlane/cheat;
22+ homepage = "https://github.com/chrisallenlane/cheat";
3523 };
3624}