anchor.diff: -{ mkDerivation
  +{ stdenv
   , fetchFromGitHub
   , fetchpatch
   , qmake
  
positive.code: 
    qmakeFlags = [
      # Use pkg-config to correctly locate library paths
      "-config" "link_pkgconfig"
    ];
  
    meta = with lib; {
      description = "A cosmic recursive flame fractal editor";
      homepage = "https://github.com/bitsed/qosmic";
      license = licenses.gpl3Plus;
      maintainers = [ maintainers.raboof ];
      # It might be possible to make it work on OSX,
      # but this has not been tested.
      platforms = platforms.linux;
    };
  }
  
negative.code:     })
    ];
  
    postPatch = lib.optionalString stdenv.isDarwin ''
      substituteInPlace qosmic.pro \
        --replace "/share" "/Applications/qosmic.app/Contents/Resources" \
        --replace "/qosmic/scripts" "/scripts" \
        --replace "install_icons install_desktop" ""
    '';
  
    nativeBuildInputs = [ qmake wrapQtAppsHook pkg-config ];
  
    buildInputs = [
  