Merge pull request #173325 from KAction/zsh-doc

authored by Sandro and committed by GitHub baac3746 c77e2ff4

+4 -2
+4 -2
pkgs/shells/zsh/default.nix
··· 19 19 stdenv.mkDerivation { 20 20 pname = "zsh"; 21 21 inherit version; 22 + outputs = [ "out" "doc" "info" "man" ]; 22 23 23 24 src = fetchurl { 24 25 url = "mirror://sourceforge/zsh/zsh-${version}.tar.xz"; ··· 50 51 checkFlags = map (T: "TESTNUM=${T}") (lib.stringToCharacters "ABCDEVW"); 51 52 52 53 # XXX: think/discuss about this, also with respect to nixos vs nix-on-X 53 - postInstall = lib.optionalString stdenv.isLinux '' 54 + postInstall = '' 54 55 make install.info install.html 55 - '' + '' 56 56 mkdir -p $out/etc/ 57 57 cat > $out/etc/zprofile <<EOF 58 58 if test -e /etc/NIXOS; then ··· 84 84 mv $out/etc/zprofile $out/etc/zprofile_zwc_is_used 85 85 86 86 rm $out/bin/zsh-${version} 87 + mkdir -p $out/share/doc/ 88 + mv $out/share/zsh/htmldoc $out/share/doc/zsh-$version 87 89 ''; 88 90 # XXX: patch zsh to take zwc if newer _or equal_ 89 91