anchor.diff:      "--without-fop"
       "--without-xsltproc"
       "--without-dtrace"
  -      # --with-int10=BACKEND
  -      # --with-module-dir=DIR
  -      # --with-log-dir=DIR
  -      # --with-builderstring=BUILDERSTRING
  -      # --with-fallback-input-driver=$FALLBACK_INPUT_DRIVER
  -      # --with-fontrootdir=DIR
  -      # --with-fontmiscdir=DIR
  -      # --with-fontotfdir=DIR
  -      # --with-fontttfdir=DIR
  -      # --with-fonttype1dir=DIR
  -      # --with-font75dpidir=DIR
  -      # --with-font100dpidir=DIR
       # There are only paths containing "${prefix}" and no fonts.
       "--with-default-font-path="
  -      # --with-xkb-path=PATH
  -      # --with-xkb-output=PATH
  -      # --with-default-xkb-rules=RULES
  -      # --with-default-xkb-model=MODEL
  -      # --with-default-xkb-layout=LAYOUT
  -      # --with-default-xkb-variant=VARIANT
  -      # --with-default-xkb-options=OPTIONS
  -      # --with-serverconfig-path=PATH
       "--with-systemd-daemon"
  -      # --with-shared-memory-dir=PATH
  -      # --with-xkb-bin-directory=DIR
       "--with-sha1=libcrypto"
     ];
  +
  +  mesonFlags = [
  +    "-Dxorg=true"
  +    "-Dxephyr=true"
  +    "-Dxwayland=true"
  +    "-Dglamor=true"
  +    "-Dxnest=true"
  +    "-Ddmx=true"
  +    "-Dxvfb=true"  # FIXME
  +    "-Dxwin=false"  # Windows
  +    "-Dglx=true"
  +    "-Dxdmcp=true"
  +    "-Dxdm-auth-1=true"
  +    "-Dsecure-rpc=true"
  +    "-Dipv6=true"
  +    "-Dint10=auto"
  +    "-Dpciaccess=true"
  +    "-Dudev=true"
  +    "-Dhal=false"
  +    "-Dsystemd_logind=true"
  +    "-Dvbe=true"
  +    "-Dvgahw=true"
  +    "-Ddpms=true"
  +    "-Dxf86bigfont=true"
  +    "-Dscreensaver=true"
  +    "-Dxres=true"
  +    "-Dxace=true"
  +    "-Dxinerama=true"
  +    "-Dxcsecurity=true"
  +    "-Dxv=true"
  +    "-Dxvmc=true"
  +    "-Ddga=true"
  +    "-Dlinux_apm=${boolTf (elem targetSystem platforms.linux)}"
  +    "-Dlinux_acpi=${boolTf (elem targetSystem platforms.linux)}"
  +    "-Dmitshm=true"
  +    "-Ddri1=true"
  +    "-Ddri2=true"
  +    "-Ddri3=true"
  +  ];
  +
  +  postPatch = optionalString (versionAtLeast channel "1.20") ''
  +    # Xwin is an unconditional dependency.
  +    sed -i include/meson.build \
  +      -e '/xwin-config.h/,+2 d'
  +
  +    # Remove tests that are broken in the release tarball.
  +    sed -i test/meson.build \
  +      -e '/bigreq/d' \
  +      -e '/sync/d'
  +  '';
   
     postInstall = ''
       rm -fr $out/share/X11/xkb/compiled
  -    ln -s /var/tmp $out/share/X11/xkb/compiled
  +    ###ln -s /var/tmp $out/share/X11/xkb/compiled  # FIXME
   
       wrapProgram $out/bin/Xephyr \
         --set XKB_BINDIR "${xorg.xkbcomp}/bin" \
  
positive.code:       pgpsigUrls = map (n: "${n}.sig") src.urls;
        pgpKeyFingerprints = [
          # Adam Jackson
          "995E D5C8 A613 8EB0 961F  1847 4C09 DD83 CAAA 50B2"
        ];
        failEarly = true;
  
negative.code:     flex
      makeWrapper
      util-macros
    ] ++ optionals (versionAtLeast channel "1.20") [
      meson
      ninja
    ];
  
    # xkbcomp
    buildInputs = [
      audit_lib
      dbus
      libbsd
      libdmx
      libdrm
      libepoxy
      xorg.libpciaccess
      libselinux
      libtirpc
      libunwind
      libx11
      libxau
  