From b8f1cd1e97c06953eeb0883a74d91a89b64576cb Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Mon, 16 May 2022 18:59:32 -0400 Subject: [PATCH] zsh: split documentation into separate outputs --- pkgs/shells/zsh/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/shells/zsh/default.nix b/pkgs/shells/zsh/default.nix index e5967ac1f78..7e177a1744c 100644 --- a/pkgs/shells/zsh/default.nix +++ b/pkgs/shells/zsh/default.nix @@ -19,6 +19,7 @@ in stdenv.mkDerivation { pname = "zsh"; inherit version; + outputs = [ "out" "doc" "info" "man" ]; src = fetchurl { url = "mirror://sourceforge/zsh/zsh-${version}.tar.xz"; @@ -50,9 +51,8 @@ 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 = lib.optionalString stdenv.isLinux '' + postInstall = '' make install.info install.html - '' + '' mkdir -p $out/etc/ cat > $out/etc/zprofile <