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