git.iko.soy/typeable/nixpkgs
on master help sign in
cheat: 2.5.1 -> 3.0.3
commit36f35bd78a93d6abf918c899c69050a4cacd26ca authorJörg Thalheim <joerg@thalheim.io> dateWed 30 Oct 2019, 13:40 (7 years ago) parent23f3abd
1 file changed+6−18
pkgs/applications/misc/cheat/default.nix+6−18
pkgs/applications/misc/cheat/default.nix+6−18
@@ -1,31 +1,19 @@
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; {
3119 description = "cheat allows you to create and view interactive cheatsheets on the command-line";