Merge pull request #66237 from evanjs/feature/cht.sh-unstable-2019-08-06

cht.sh: unstable-2018-11-02 -> unstable-2019-08-06
This commit is contained in:
Sarah Brofeldt 2019-08-08 20:49:47 +02:00 committed by GitHub
commit 8c588e6b37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 4 deletions

View file

@ -1698,6 +1698,11 @@
fingerprint = "67FE 98F2 8C44 CF22 1828 E12F D57E FA62 5C9A 925F";
}];
};
evanjs = {
email = "evanjsx@gmail.com";
github = "evanjs";
name = "Evan Stoll";
};
evck = {
email = "eric@evenchick.com";
github = "ericevenchick";

View file

@ -9,15 +9,15 @@
stdenv.mkDerivation rec {
name = "cht.sh-${version}";
version = "unstable-2018-11-02";
version = "unstable-2019-08-06";
nativeBuildInputs = [ makeWrapper ];
src = fetchFromGitHub {
owner = "chubin";
repo = "cheat.sh";
rev = "9595805ac68b3c096f7c51fa024dcb97a7dfac44";
sha256 = "11g8say5fksg0zg0bqrgl92rprn4lwp20g9rz1i0r38f0jy3nyrf";
rev = "f507ba51d6bc1ae6c7df808cadbe4f8603951b6b";
sha256 = "0r7x9a3qzzkbd1m5zdlkpmhx0p7b7ja42190s7fidls3dsm710g0";
};
# Fix ".cht.sh-wrapped" in the help message
@ -25,6 +25,12 @@ stdenv.mkDerivation rec {
installPhase = ''
install -m755 -D share/cht.sh.txt "$out/bin/cht.sh"
# install shell completion files
mkdir -p $out/share/bash-completion/completions $out/share/zsh/site-functions
mv share/bash_completion.txt $out/share/bash-completion/completions/cht.sh
cp share/zsh.txt $out/share/zsh/site-functions/_cht
wrapProgram "$out/bin/cht.sh" \
--prefix PATH : "${stdenv.lib.makeBinPath [ curl rlwrap ncurses xsel ]}"
'';
@ -32,7 +38,7 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
description = "CLI client for cheat.sh, a community driven cheat sheet";
license = licenses.mit;
maintainers = with maintainers; [ fgaz ];
maintainers = with maintainers; [ fgaz evanjs ];
homepage = https://github.com/chubin/cheat.sh;
};
}