mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
zsh-prezto: install to right place
This commit is contained in:
parent
27c60f4959
commit
d5b4c4fdac
1 changed files with 8 additions and 14 deletions
|
@ -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 ];
|
||||||
|
|
Loading…
Reference in a new issue