anchor.diff:      '';
   
       patches = [
  -      # Fixes "Integer 243 in '243 (243)' followed by non-digit" error with systemctl completion.
  -      # https://github.com/fish-shell/fish-shell/issues/5689 (will be included in fish 3.1.0)
  +      # Fixes compilation on old Apple SDKs
         (fetchpatch {
  -        url = "https://github.com/fish-shell/fish-shell/commit/c6ec4235136e82c709e8d7b455f7c463f9714b48.patch";
  -        sha256 = "02m6pkhhx6y21csydznsxkbpnwhcpzyz99xgd9ryh7s03v7wbigw";
  +        url = "https://github.com/fish-shell/fish-shell/commit/10385d422b3e2a823faebfdaf13edd0e7f48a27f.patch";
  +        sha256 = "0hj13kyjf5wr9j5afd4mfylcr7mz68ilbncbcf307drk1lv1lvrn";
         })
       ];
   
  
positive.code:       sed -r "s|command grep|command ${gnugrep}/bin/grep|" \
            -i "$out/share/fish/functions/grep.fish"
        sed -i "s|which |${which}/bin/which |"               \
                "$out/share/fish/functions/type.fish"
        sed -e "s|\|cut|\|${coreutils}/bin/cut|"             \
            -i "$out/share/fish/functions/fish_prompt.fish"
        sed -e "s|gettext |${gettext}/bin/gettext |"         \
  
negative.code: 
    fish = stdenv.mkDerivation rec {
      pname = "fish";
      version = "3.1.0";
  
      etcConfigAppendix = builtins.toFile "etc-config.appendix.fish" etcConfigAppendixText;
  
  