anchor.diff:  , qtwayland
   }:
   let
  -  version = "0.8.2";
  +  version = "1.0.1";
     timestamp = "99999999999";
     commit = "nix-${version}";
  -  hash = "sha256-BaqKlF2SZueykFhtj91McP39oXYAx+lz8eXhn5eouqg=";
  +  hash = "sha256-vHBlrtQ06kjjXXGL/jSdpAPHgqb7Vn1c6jXZVXwxHPQ=";
   
     udev_rules = ''
       #Flipper Zero serial port
  
positive.code:     pkg-config
      qmake
      qttools
    ];
  
    buildInputs = [
      zlib
      libusb1
      libGL
      wrapQtAppsHook
  
      qtbase
      qt3d
  
negative.code:     qtwayland
    ];
  
    qmakeFlags = [
      "DEFINES+=DISABLE_APPLICATION_UPDATES"
      "CONFIG+=qtquickcompiler"
    ];
  
    postPatch = ''
      substituteInPlace qflipper_common.pri \
          --replace 'GIT_VERSION = unknown' 'GIT_VERSION = "${version}"' \
          --replace 'GIT_TIMESTAMP = 0' 'GIT_TIMESTAMP = ${timestamp}' \
          --replace 'GIT_COMMIT = unknown' 'GIT_COMMIT = "${commit}"'
      cat qflipper_common.pri
    '';
  
    postInstall = ''
      mkdir -p $out/bin
      ${lib.optionalString stdenv.isDarwin ''
      cp qFlipper.app/Contents/MacOS/qFlipper $out/bin
      ''}
      cp qFlipper-cli $out/bin
  
      mkdir -p $out/etc/udev/rules.d
      tee $out/etc/udev/rules.d/42-flipperzero.rules << EOF
      ${udev_rules}
      EOF
    '';
  
    meta = with lib; {
  