anchor.diff:    passthru = {
       tests = {
         installedTests = nixosTests.installed-tests.xdg-desktop-portal;
  +
  +      validate-icon = runCommand "test-icon-validation" { } ''
  +        ${finalAttrs.finalPackage}/libexec/xdg-desktop-portal-validate-icon --sandbox 512 512 ${../../../applications/audio/zynaddsubfx/ZynLogo.svg} > "$out"
  +        grep format=svg "$out"
  +      '';
       };
     };
   
  
positive.code: , python3
  , pkg-config
  , stdenv
  , substituteAll
  , wrapGAppsHook
  , enableGeoLocation ? true
  }:
  
  stdenv.mkDerivation rec {
    pname = "xdg-desktop-portal";
    version = "1.15.0";
  
  
negative.code: 
    src = fetchFromGitHub {
      owner = "flatpak";
      repo = "xdg-desktop-portal";
      rev = finalAttrs.version;
      sha256 = "sha256-Kw3zJeGwPfw1fDo8HsgYmrpgCk/PUvWZPRloKJNAJVc=";
    };
  
    patches = [
      # The icon validator copied from Flatpak needs to access the gdk-pixbuf loaders
      # in the Nix store and cannot bind FHS paths since those are not available on NixOS.
      (runCommand "icon-validator.patch" { } ''
        # Flatpak uses a different path
        substitute "${flatpak.icon-validator-patch}" "$out" \
          --replace "/icon-validator/validate-icon.c" "/src/validate-icon.c"
      '')
    ];
  
    nativeBuildInputs = [
      autoreconfHook
  