anchor.diff:    installPhase = ''
       runHook preInstall
   
  -    mkdir -pv $out/bin $out/share/${pname}
  -    cp -vr * $out/share/${pname}
  +    mkdir -pv $out/bin $out/share/${finalAttrs.pname}
  +    cp -vr * $out/share/${finalAttrs.pname}
   
       cat << EOF > $out/bin/omf-install
       #!${runtimeShell}
   
       ${fish}/bin/fish \\
  -      $out/share/${pname}/bin/install \\
  +      $out/share/${finalAttrs.pname}/bin/install \\
         --noninteractive \\
  -      --offline=$out/share/${pname}
  +      --offline=$out/share/${finalAttrs.pname}
   
       EOF
       chmod +x $out/bin/omf-install
   
  -    runHook PostInstall
  +    runHook postInstall
     '';
   
     meta = with lib; {
  
positive.code: , stdenv
  , fetchFromGitHub
  , fish
  , bash
  , runtimeShell
  , writeShellScript
  }:
  
  stdenv.mkDerivation rec {
    pname = "oh-my-fish";
    version = "7+unstable=2021-03-03";
  
    src = fetchFromGitHub {
      owner = pname;
      repo = pname;
      rev = "0b1396ad7962073fa25615bf03c43b53eddc2d56";
      hash = "sha256-lwMo4+PcYR9kYJPWK+ALiMfBdxFSgB2vjtSn8QrmmEA=";
    };
  
    strictDeps = true;
    buildInputs = [
      fish
      bash
    ];
  
    dontConfigure = true;
  
negative.code:     mainProgram = "omf-install";
      platforms = fish.meta.platforms;
    };
  })
  # TODO: customize the omf-install script
  