forked from mirrors/nixpkgs
d824354bad
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/cheat/versions. These checks were done: - built on NixOS - ran ‘/nix/store/m8yp4ml3jvxhbci1fjg34b27pvpzq9pr-cheat-2.2.3/bin/.cheat-wrapped -h’ got 0 exit code - ran ‘/nix/store/m8yp4ml3jvxhbci1fjg34b27pvpzq9pr-cheat-2.2.3/bin/.cheat-wrapped --help’ got 0 exit code - ran ‘/nix/store/m8yp4ml3jvxhbci1fjg34b27pvpzq9pr-cheat-2.2.3/bin/.cheat-wrapped -v’ and found version 2.2.3 - ran ‘/nix/store/m8yp4ml3jvxhbci1fjg34b27pvpzq9pr-cheat-2.2.3/bin/.cheat-wrapped --version’ and found version 2.2.3 - ran ‘/nix/store/m8yp4ml3jvxhbci1fjg34b27pvpzq9pr-cheat-2.2.3/bin/cheat -h’ got 0 exit code - ran ‘/nix/store/m8yp4ml3jvxhbci1fjg34b27pvpzq9pr-cheat-2.2.3/bin/cheat --help’ got 0 exit code - ran ‘/nix/store/m8yp4ml3jvxhbci1fjg34b27pvpzq9pr-cheat-2.2.3/bin/cheat -v’ and found version 2.2.3 - ran ‘/nix/store/m8yp4ml3jvxhbci1fjg34b27pvpzq9pr-cheat-2.2.3/bin/cheat --version’ and found version 2.2.3 - found 2.2.3 with grep in /nix/store/m8yp4ml3jvxhbci1fjg34b27pvpzq9pr-cheat-2.2.3 - directory tree listing: https://gist.github.com/661cfb129e250e70cce3e717f95e1ca9
31 lines
799 B
Nix
31 lines
799 B
Nix
{ stdenv, python3Packages, fetchFromGitHub }:
|
|
|
|
with python3Packages;
|
|
buildPythonApplication rec {
|
|
name = "${pname}-${version}";
|
|
pname = "cheat";
|
|
version = "2.2.3";
|
|
|
|
propagatedBuildInputs = [ docopt pygments ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chrisallenlane";
|
|
repo = "cheat";
|
|
rev = version;
|
|
sha256 = "1p9a54fax3b1ilqcwdlccy08ww3igwsyzcyikqivaxj5p6mqq6wl";
|
|
};
|
|
# no tests available
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
install -D man1/cheat.1.gz $out/share/man/man1/cheat.1.gz
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "cheat allows you to create and view interactive cheatsheets on the command-line";
|
|
maintainers = with maintainers; [ mic92 ];
|
|
license = with licenses; [gpl3 mit];
|
|
homepage = https://github.com/chrisallenlane/cheat;
|
|
};
|
|
}
|