diff --git a/modules/shells/zsh/default.nix b/modules/shells/zsh/default.nix index fe13ea3..d80bf8d 100644 --- a/modules/shells/zsh/default.nix +++ b/modules/shells/zsh/default.nix @@ -1,13 +1,16 @@ -{ callPackage -, glibc +{ glibc , lib , makeWrapper , oh-my-zsh -, runCommand , stdenv , zsh }: +let + extraPaths = lib.optionals (!stdenv.targetPlatform.isDarwin) [glibc.bin]; + +in + stdenv.mkDerivation { pname = "zsh"; version = zsh.version; @@ -34,7 +37,7 @@ stdenv.mkDerivation { echo "[ -f ~/.zshrc ] && source ~/.zshrc" >> .zshrc makeWrapper ${zsh}/bin/zsh $out/bin/zsh-with-theme \ - --prefix PATH : ${lib.makeBinPath [glibc.bin]} \ + --prefix PATH : ${lib.makeBinPath extraPaths} --set ZDOTDIR $out '';