amadaluzian-zsh: fix package a small bit

This commit is contained in:
Artur Manuel 2025-04-03 02:10:01 +01:00
commit 941c8803b3
Signed by: amadaluzia
SSH key fingerprint: SHA256:ubvwT66gNUKSsgSzEb2UQnX8pzTq5N+r8eRVYGJJm4Q
2 changed files with 12 additions and 10 deletions

View file

@ -1,11 +1,11 @@
source "@zsh-deferPath@"
eval "$(@starshipPath@ init zsh)" eval "$(@starshipPath@ init zsh)"
eval "$(@zoxidePath@ init zsh --cmd j)" eval "$(@zoxidePath@ init zsh --cmd j)"
source "@zsh-deferPath@" zsh-defer source "@fzf-tabPath@"
zsh-defer source "@zsh-syntax-highlightingPath@" zsh-defer source "@zsh-syntax-highlightingPath@"
zsh-defer source "@zsh-autosuggestionsPath@" zsh-defer source "@zsh-autosuggestionsPath@"
source "@fzf-tabPath@"
zstyle ':fzf-tab:*' fzf-command "@fzfPath@" zstyle ':fzf-tab:*' fzf-command "@fzfPath@"

View file

@ -16,27 +16,29 @@
symlinkJoin { symlinkJoin {
name = "amadaluzian-zsh"; name = "amadaluzian-zsh";
paths = [ paths = [
eza
zsh zsh
inputs.self.packages.${system}.amadaluzian-starship inputs.self.packages.${system}.amadaluzian-starship
zoxide zoxide
fzf
]; ];
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
postBuild = '' postBuild = ''
cp -Lr ${./config} $out/share/zshrc cp -Lr ${./config} $out/share/amadaluzian-zshrc
substituteInPlace $out/share/zshrc/.zshrc \ substituteInPlace $out/share/amadaluzian-zshrc/.zshrc \
--subst-var-by ezaPath ${lib.getExe' eza "eza"} \ --subst-var-by ezaPath ${lib.getExe' eza "eza"} \
--subst-var-by fzf-tabPath ${zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh \
--subst-var-by zsh-deferPath ${zsh-defer}/share/zsh-defer/zsh-defer.plugin.zsh \
--subst-var-by zsh-syntax-highlightingPath ${zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh \
--subst-var-by zsh-autosuggestionsPath ${zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.zsh \
--subst-var-by starshipPath ${ --subst-var-by starshipPath ${
lib.getExe' inputs.self.packages.${system}.amadaluzian-starship "starship" lib.getExe' inputs.self.packages.${system}.amadaluzian-starship "starship"
} \ } \
--subst-var-by zoxidePath ${lib.getExe' zoxide "zoxide"} \ --subst-var-by zoxidePath ${lib.getExe' zoxide "zoxide"} \
--subst-var-by fzfPath ${lib.getExe' fzf "fzf"} \ --subst-var-by fzfPath ${lib.getExe' fzf "fzf"} \
--subst-var-by fzf-tabPath ${zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh \
--subst-var-by zsh-deferPath ${zsh-defer}/share/zsh-defer/zsh-defer.plugin.zsh \
--subst-var-by zsh-syntax-highlightingPath ${zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh \
--subst-var-by zsh-autosuggestionsPath ${zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.zsh \
wrapProgram $out/bin/zsh \ wrapProgram $out/bin/zsh \
--set ZDOTDIR $out/share/zshrc \ --set ZDOTDIR $out/share/amadaluzian-zshrc \
''; '';
meta.mainProgram = "zsh"; meta.mainProgram = "zsh";
passthru.shellPath = "/bin/zsh"; passthru.shellPath = "/bin/zsh";