diff --git a/pkgs/by-name/fi/fish/package.nix b/pkgs/by-name/fi/fish/package.nix index 874b108f6471..f75774a57b26 100644 --- a/pkgs/by-name/fi/fish/package.nix +++ b/pkgs/by-name/fi/fish/package.nix @@ -9,6 +9,7 @@ gnused, gnugrep, gawk, + fish, man-db, ninja, getent, @@ -287,6 +288,13 @@ stdenv.mkDerivation (finalAttrs: { ])) # Avoid warnings when building the manpages about HOME not being writable writableTmpDirAsHomeHook + ] + ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ + # Building the docs ends up wanting to run fish_indent at build + # time, which obviously can't use a cross compiled fish_indent + # from this derivation. Pull in the build platform's fish to + # provide it. + fish ]; buildInputs = [