Merge pull request #59134 from NickHu/zsh-prezto
zsh-prezto: 2017-12-03 -> 2019-03-18
This commit is contained in:
commit
2fdca0eb58
@ -1,20 +1,22 @@
|
|||||||
{ stdenv, fetchgit }:
|
{ stdenv, fetchgit }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "zsh-prezto-2017-12-03";
|
name = "zsh-prezto-2019-03-18";
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://github.com/sorin-ionescu/prezto";
|
url = "https://github.com/sorin-ionescu/prezto";
|
||||||
rev = "029414581e54f5b63156f81acd0d377e8eb78883";
|
rev = "1f4601e44c989b90dc7314b151891fa60a101251";
|
||||||
sha256 = "0crrj2nq0wcv5in8qimnkca2an760aqald13vq09s5kbwwc9rs1f";
|
sha256 = "1dcd5r7pc4biiplm0lh7yca0h6hs0xpaq9dwaarmfsh9wrd68350";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
sed -i -e "s|\''${ZDOTDIR:\-\$HOME}/.zpreztorc|/etc/zpreztorc|g" init.zsh
|
sed -i '/\''${ZDOTDIR:\-\$HOME}\/.zpreztorc" ]]/i\
|
||||||
|
if [[ -s "/etc/zpreztorc" ]]; then\
|
||||||
|
source "/etc/zpreztorc"\
|
||||||
|
fi' init.zsh
|
||||||
sed -i -e "s|\''${ZDOTDIR:\-\$HOME}/.zprezto/|$out/|g" init.zsh
|
sed -i -e "s|\''${ZDOTDIR:\-\$HOME}/.zprezto/|$out/|g" init.zsh
|
||||||
for i in runcoms/*; do
|
for i in runcoms/*; do
|
||||||
sed -i -e "s|\''${ZDOTDIR:\-\$HOME}/.zprezto/|$out/|g" $i
|
sed -i -e "s|\''${ZDOTDIR:\-\$HOME}/.zprezto/|$out/|g" $i
|
||||||
done
|
done
|
||||||
sed -i -e "s|\''${0:h}/cache.zsh|\''${ZDOTDIR:\-\$HOME}/.zfasd_cache|g" modules/fasd/init.zsh
|
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
|
Loading…
x
Reference in New Issue
Block a user