1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00

Merge pull request #59134 from NickHu/zsh-prezto

zsh-prezto: 2017-12-03 -> 2019-03-18
This commit is contained in:
Maximilian Bosch 2019-04-09 02:27:49 +02:00 committed by GitHub
commit 2fdca0eb58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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