tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
cheat: 2.2.1 -> 2.2.2
Joerg Thalheim
8 years ago
cd3bdc91
d276fbaa
+12
-6
1 changed file
expand all
collapse all
unified
split
pkgs
applications
misc
cheat
default.nix
+12
-6
pkgs/applications/misc/cheat/default.nix
···
1
1
-
{ stdenv, python3Packages, fetchurl }:
1
1
+
{ stdenv, python3Packages, fetchFromGitHub }:
2
2
3
3
with python3Packages;
4
4
buildPythonApplication rec {
5
5
name = "${pname}-${version}";
6
6
pname = "cheat";
7
7
-
version = "2.2.1";
7
7
+
version = "2.2.2";
8
8
9
9
-
propagatedBuildInputs = with python3Packages; [ docopt pygments ];
9
9
+
propagatedBuildInputs = [ docopt pygments ];
10
10
11
11
-
src = fetchPypi {
12
12
-
inherit pname version;
13
13
-
sha256 = "0w4k1h02p2gjv5wcr1c7r0ynb7v50qajx4hpyxz0ndh96f6x30pl";
11
11
+
src = fetchFromGitHub {
12
12
+
owner = "chrisallenlane";
13
13
+
repo = "cheat";
14
14
+
rev = version;
15
15
+
sha256 = "1da4m4n6nivjakpll6jj0aszrv24g2zax74034lzpv3pbh84fvas";
14
16
};
15
17
# no tests available
16
18
doCheck = false;
19
19
+
20
20
+
postInstall = ''
21
21
+
install -D man1/cheat.1.gz $out/share/man/man1/cheat.1.gz
22
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";