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: 60f50b69a650
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 970a22ce1542
Choose a head ref
  • 3 commits
  • 1 file changed
  • 2 contributors

Commits on Oct 30, 2019

  1. cheat: 2.5.1 -> 3.0.3

    Mic92 committed Oct 30, 2019
    Copy the full SHA
    36f35bd View commit details
  2. Copy the full SHA
    20367c2 View commit details
  3. cheat: 2.5.1 -> 3.0.3 (#72299)

    cheat: 2.5.1 -> 3.0.3
    Mic92 authored Oct 30, 2019
    Copy the full SHA
    970a22c View commit details
Showing with 8 additions and 20 deletions.
  1. +8 −20 pkgs/applications/misc/cheat/default.nix
28 changes: 8 additions & 20 deletions pkgs/applications/misc/cheat/default.nix
Original file line number Diff line number Diff line change
@@ -1,36 +1,24 @@
{ stdenv, python3, fetchFromGitHub }:
{ stdenv, fetchFromGitHub, buildGoModule }:

with python3.pkgs;
buildPythonApplication rec {
buildGoModule rec {
pname = "cheat";
version = "2.5.1";

propagatedBuildInputs = [ docopt pygments termcolor ];
version = "3.0.3";

src = fetchFromGitHub {
owner = "chrisallenlane";
repo = "cheat";
rev = version;
sha256 = "1i543hvg1yizamfd83bawflfcb500hvc72i59ikck8j1hjk50hsl";
sha256 = "19w1admdcgld9vlc4fsyc5d9bi6rmwhr2x2ji43za2vjlk34hnnx";
};
# 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
'';
subPackages = [ "cmd/cheat" ];

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

meta = with stdenv.lib; {
description = "cheat allows you to create and view interactive cheatsheets on the command-line";
description = "Create and view interactive cheatsheets on the command-line";
maintainers = with maintainers; [ mic92 ];
license = with licenses; [ gpl3 mit ];
homepage = https://github.com/chrisallenlane/cheat;
homepage = "https://github.com/chrisallenlane/cheat";
};
}