Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 83ae1ffed43f
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1b83302d5dc8
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Mar 8, 2019

  1. cheat: 2.3.1 -> 2.5.1

    Mic92 committed Mar 8, 2019
    Copy the full SHA
    e9b9f05 View commit details
  2. Merge pull request #57064 from Mic92/cheat

    cheat: 2.3.1 -> 2.5.1
    Mic92 authored Mar 8, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1b83302 View commit details
Showing with 13 additions and 6 deletions.
  1. +13 −6 pkgs/applications/misc/cheat/default.nix
19 changes: 13 additions & 6 deletions pkgs/applications/misc/cheat/default.nix
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
{ stdenv, python3Packages, fetchFromGitHub }:
{ stdenv, python3, fetchFromGitHub }:

with python3Packages;
with python3.pkgs;
buildPythonApplication rec {
name = "${pname}-${version}";
pname = "cheat";
version = "2.3.1";
version = "2.5.1";

propagatedBuildInputs = [ docopt pygments ];
propagatedBuildInputs = [ docopt pygments termcolor ];

src = fetchFromGitHub {
owner = "chrisallenlane";
repo = "cheat";
rev = version;
sha256 = "1dcpjvbv648r8325qjf30m8b4cyrrjbzc2kvh40zy2mbjsa755zr";
sha256 = "1i543hvg1yizamfd83bawflfcb500hvc72i59ikck8j1hjk50hsl";
};
# no tests available
doCheck = false;

postInstall = ''
install -D man1/cheat.1.gz $out/share/man/man1/cheat.1.gz
mv $out/${python3.sitePackages}/etc $out/
mv $out/${python3.sitePackages}/usr/share/* $out/share/
rm -r $out/${python3.sitePackages}/usr
'';

makeWrapperArgs = [
"--suffix" "CHEAT_PATH" ":" "$out/share/cheat"
];

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];
license = with licenses; [ gpl3 mit ];
homepage = https://github.com/chrisallenlane/cheat;
};
}