Merge pull request #111264 from holymonson/prezto

zsh-prezto: install to right place
This commit is contained in:
Sandro 2021-01-30 16:25:12 +01:00 committed by GitHub
commit 791555c444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,26 +12,20 @@ stdenv.mkDerivation rec {
fetchSubmodules = true; fetchSubmodules = true;
}; };
buildPhase = ''
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
'';
installPhase = '' installPhase = ''
mkdir -p $out mkdir -p $out/share/zsh-prezto
cp ./* $out/ -R cp -R ./ $out/share/zsh-prezto
''; '';
passthru.updateScript = unstableGitUpdater {}; passthru.updateScript = unstableGitUpdater {};
meta = with lib; { meta = with lib; {
description = "Prezto is the configuration framework for Zsh; it enriches the command line interface environment with sane defaults, aliases, functions, auto completion, and prompt themes"; description = "The configuration framework for Zsh";
longDescription = ''
Prezto is the configuration framework for Zsh; it enriches
the command line interface environment with sane defaults,
aliases, functions, auto completion, and prompt themes.
'';
homepage = "https://github.com/sorin-ionescu/prezto"; homepage = "https://github.com/sorin-ionescu/prezto";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ holymonson ]; maintainers = with maintainers; [ holymonson ];