summaryrefslogtreecommitdiffstats
path: root/pkgs/shells
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2021-02-09 10:54:55 +0100
committerJörg Thalheim <joerg@thalheim.io>2021-02-09 10:54:55 +0100
commit6eeba550e96d1cb5a6ee914716e1b94904a37136 (patch)
tree931845c337237adf9254b3735ecad26065b3cb43 /pkgs/shells
parent031fc22851a92b4affb4bd0d837e6cd1230e9bc8 (diff)
parentbf5cc63b6c2e73e42bb244aba95f95d3591839f2 (diff)
Merge remote-tracking branch 'upstream/staging-next' into HEAD
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/zsh/zsh-prezto/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/zsh-prezto/default.nix b/pkgs/shells/zsh/zsh-prezto/default.nix
index 98cbf2c80f0f..d3e2c6534aa2 100644
--- a/pkgs/shells/zsh/zsh-prezto/default.nix
+++ b/pkgs/shells/zsh/zsh-prezto/default.nix
@@ -12,6 +12,11 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};
+ postPatch = ''
+ # make zshrc aware of where zsh-prezto is installed
+ sed -i -e "s|\''${ZDOTDIR:\-\$HOME}/.zprezto/|$out/share/zsh-prezto/|g" runcoms/zshrc
+ '';
+
installPhase = ''
mkdir -p $out/share/zsh-prezto
cp -R ./ $out/share/zsh-prezto