anchor.diff:      ./no-werror.patch
       ./png2icns.patch
     ];
  +
  +  preConfigure  = stdenv.lib.optional (!stdenv.isDarwin) ''
  +    substituteInPlace glfw/egl_context.c --replace "libEGL.so.1" "${stdenv.lib.getLib libGL}/lib/libEGL.so.1"
  +  '';
   
     buildPhase = if stdenv.isDarwin then ''
       make app
  
positive.code:     optipng
    ];
  
    outputs = [ "out" "terminfo" ];
  
    patches = [
  
negative.code: { stdenv, substituteAll, fetchFromGitHub, python3Packages, glfw, libunistring,
    harfbuzz, fontconfig, pkgconfig, ncurses, imagemagick, xsel,
    libstartup_notification, libGL, libX11, libXrandr, libXinerama, libXcursor,
    libxkbcommon, libXi, libXext, wayland-protocols, wayland,
    which, dbus,
    Cocoa,
  