zsh-prezto: 2017-12-03 -> 2019-03-18

This commit is contained in:
Nick Hu 2019-04-07 15:48:01 +01:00
parent b7302ddbea
commit 1d03cbb875

View File

@ -1,20 +1,22 @@
{ stdenv, fetchgit }:
stdenv.mkDerivation rec {
name = "zsh-prezto-2017-12-03";
name = "zsh-prezto-2019-03-18";
src = fetchgit {
url = "https://github.com/sorin-ionescu/prezto";
rev = "029414581e54f5b63156f81acd0d377e8eb78883";
sha256 = "0crrj2nq0wcv5in8qimnkca2an760aqald13vq09s5kbwwc9rs1f";
rev = "1f4601e44c989b90dc7314b151891fa60a101251";
sha256 = "1dcd5r7pc4biiplm0lh7yca0h6hs0xpaq9dwaarmfsh9wrd68350";
fetchSubmodules = true;
};
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
for i in runcoms/*; do
sed -i -e "s|\''${ZDOTDIR:\-\$HOME}/.zprezto/|$out/|g" $i
done
sed -i -e "s|\''${0:h}/cache.zsh|\''${ZDOTDIR:\-\$HOME}/.zfasd_cache|g" modules/fasd/init.zsh
'';
installPhase = ''
mkdir -p $out