anchor.diff:      desktop-file-utils
     ];
   
  +  mesonFlags = [
  +    "-Dgtk_doc=true"
  +  ];
  +
     postPatch = ''
  -     chmod +x meson_post_install.py
  -     patchShebangs meson_post_install.py
  +    chmod +x meson_post_install.py
  +    patchShebangs meson_post_install.py
  +  '';
  +
  +  postFixup = ''
  +    # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
  +    moveToOutput "share/doc" "$devdoc"
     '';
   
     passthru = {
  
positive.code: , gettext
  , itstool
  , libxml2
  , gtk3
  , glib
  , atk
  , wrapGAppsHook
  }:
  
  stdenv.mkDerivation rec {
    pname = "ghex";
    version = "3.41.1";
  
    outputs = [ "out" "dev" ];
  
    src = fetchurl {
      url = "mirror://gnome/sources/ghex/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
      sha256 = "i3nPAJ6uXEfK0KtT4hmcOm+y86thh381m+1SR3DuYfc=";
    };
  
    nativeBuildInputs = [
      desktop-file-utils
  
negative.code:     meson
      ninja
      pkg-config
      gi-docgen
      python3
      gobject-introspection
      wrapGAppsHook
    ];
  
    buildInputs = [
      gtk4
      atk
      glib
    ];
  