From d5b4c4fdac647c7bcddc9fdecd10d8e5fc6f8db3 Mon Sep 17 00:00:00 2001 From: Monson Shao Date: Sat, 30 Jan 2021 02:25:03 +0800 Subject: [PATCH] zsh-prezto: install to right place --- pkgs/shells/zsh/zsh-prezto/default.nix | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/pkgs/shells/zsh/zsh-prezto/default.nix b/pkgs/shells/zsh/zsh-prezto/default.nix index 9ff78975b75e..98cbf2c80f0f 100644 --- a/pkgs/shells/zsh/zsh-prezto/default.nix +++ b/pkgs/shells/zsh/zsh-prezto/default.nix @@ -12,26 +12,20 @@ stdenv.mkDerivation rec { 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 = '' - mkdir -p $out - cp ./* $out/ -R + mkdir -p $out/share/zsh-prezto + cp -R ./ $out/share/zsh-prezto ''; passthru.updateScript = unstableGitUpdater {}; 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"; license = licenses.mit; maintainers = with maintainers; [ holymonson ];