anchor.diff:        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"
  +             "$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 |"         \
  
positive.code:           -i "$out/share/fish/functions/_.fish"
        sed -e "s|uname|${coreutils}/bin/uname|"             \
            -i "$out/share/fish/functions/__fish_pwd.fish"   \
              "$out/share/fish/functions/prompt_pwd.fish"
        sed -e "s|sed |${gnused}/bin/sed |"                  \
            -i "$out/share/fish/functions/alias.fish"        \
              "$out/share/fish/functions/prompt_pwd.fish"
        sed -i "s|nroff |${groff}/bin/nroff |"               \
              "$out/share/fish/functions/__fish_print_help.fish"
        sed -i "s|/sbin /usr/sbin||" \
              "$out/share/fish/functions/__fish_complete_subcommand_root.fish"
        sed -e "s|clear;|${getBin ncurses}/bin/clear;|" \
            -i "$out/share/fish/functions/fish_default_key_bindings.fish"
        sed -e "s|python3|${getBin python3}/bin/python3|" \
            -i $out/share/fish/functions/{__fish_config_interactive.fish,fish_config.fish,fish_update_completions.fish}
  
      '' + optionalString stdenv.isLinux ''
        sed -e "s| ul| ${utillinux}/bin/ul|" \
  
negative.code:       # There are differences between the release tarball and the tarball github packages from the tag
        # Hence we cannot use fetchFromGithub
        url = "https://github.com/fish-shell/fish-shell/releases/download/${version}/${pname}-${version}.tar.gz";
        sha256 = "0s2356mlx7fp9kgqgw91lm5ds2i9iq9hq071fbqmcp3875l1xnz5";
      };
  
      nativeBuildInputs = [ cmake ];
  