anchor.diff:      # for cvt command
       xorgserver
       wrapGAppsHook
  +    desktop-file-utils
     ];
   
     buildInputs = [
  
positive.code: , xorgserver
  , python3
  , wrapGAppsHook
  }:
  
  stdenv.mkDerivation rec {
    pname = "mutter";
    version = "3.32.2";
  
    outputs = [ "out" "dev" "man" ];
  
    src = fetchurl {
      url = "mirror://gnome/sources/mutter/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
      sha256 = "1h577i2ap7dpfy1jg101jvc6nzccc0csgvd55ahydlr8f94frcva";
    };
  
    mesonFlags = [
      "-Dxwayland-path=${xwayland}/bin/Xwayland"
      "-Dinstalled_tests=false" # TODO: enable these
    ];
  
    propagatedBuildInputs = [
  
negative.code:     geocode-glib libinput libgudev libwacom
      libcanberra-gtk3 zenity xkeyboard_config libxkbfile
      libxkbcommon pipewire xwayland
      gnome-settings-daemon # sysprof
    ];
  
    patches = [
      (fetchpatch {
        name = "ensure-emit-x11-display-opened.patch";
        url = "https://gitlab.gnome.org/GNOME/mutter/commit/850ef518795dcc20d3b9a4f661f70ff8d0ddacb2.patch";
        sha256 = "0cxdbrbcc8kfkvw7ryxjm2v1vk15jki7bawn128385r5hasabhxf";
      })
      (substituteAll {
        src = ./fix-paths.patch;
        inherit zenity;
      })
    ];
  
  