diff --git a/pkgs/shells/zsh/default.nix b/pkgs/shells/zsh/default.nix index 821247535050..9cca9840db57 100644 --- a/pkgs/shells/zsh/default.nix +++ b/pkgs/shells/zsh/default.nix @@ -37,7 +37,7 @@ stdenv.mkDerivation { }) ]; - nativeBuildInputs = [ autoreconfHook yodl perl groff util-linux texinfo ]; + nativeBuildInputs = [ autoreconfHook perl groff util-linux texinfo ] ++ lib.optionals stdenv.isLinux [ yodl ]; buildInputs = [ ncurses pcre ]; @@ -55,9 +55,11 @@ stdenv.mkDerivation { checkFlags = map (T: "TESTNUM=${T}") (lib.stringToCharacters "ABCDEVW"); # XXX: think/discuss about this, also with respect to nixos vs nix-on-X - postInstall = '' + postInstall = lib.optionalString stdenv.isDarwin '' + make install.bin install.modules install.fns + '' + lib.optionalString stdenv.isLinux '' make install.info install.html - + '' + '' mkdir -p $out/etc/ cat > $out/etc/zprofile <