forked from mirrors/nixpkgs
cht.sh: unstable-2018-11-02 -> unstable-2019-08-06
- Bump cht.sh to unstable-2019-08-06 - Add bash and zsh completions
This commit is contained in:
parent
fd1c7cdc5d
commit
9037a5acc2
|
@ -9,15 +9,15 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "cht.sh-${version}";
|
name = "cht.sh-${version}";
|
||||||
version = "unstable-2018-11-02";
|
version = "unstable-2019-08-06";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "chubin";
|
owner = "chubin";
|
||||||
repo = "cheat.sh";
|
repo = "cheat.sh";
|
||||||
rev = "9595805ac68b3c096f7c51fa024dcb97a7dfac44";
|
rev = "f507ba51d6bc1ae6c7df808cadbe4f8603951b6b";
|
||||||
sha256 = "11g8say5fksg0zg0bqrgl92rprn4lwp20g9rz1i0r38f0jy3nyrf";
|
sha256 = "0r7x9a3qzzkbd1m5zdlkpmhx0p7b7ja42190s7fidls3dsm710g0";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Fix ".cht.sh-wrapped" in the help message
|
# Fix ".cht.sh-wrapped" in the help message
|
||||||
|
@ -25,6 +25,12 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -m755 -D share/cht.sh.txt "$out/bin/cht.sh"
|
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" \
|
wrapProgram "$out/bin/cht.sh" \
|
||||||
--prefix PATH : "${stdenv.lib.makeBinPath [ curl rlwrap ncurses xsel ]}"
|
--prefix PATH : "${stdenv.lib.makeBinPath [ curl rlwrap ncurses xsel ]}"
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue