anchor.diff:      (wtFlag "x" (xorg != null) null)
     ];
   
  -  nativeBuildInputs = [
  -    gettext
  -    perl
  -  ];
  -
  -  propagatedBuildInputs = [
  -    gnome-wrapper
  -  ];
  -
  -  buildInputs = [
  -    adwaita-icon-theme
  -    atk
  -    at-spi2-atk
  -    cairo
  -    colord
  -    cups
  -    epoxy
  -    expat
  -    fontconfig
  -    gdk-pixbuf
  -    glib
  -    gobject-introspection
  -    json-glib
  -    librsvg
  -    libxkbcommon
  -    mesa_noglu
  -    pango
  -    rest
  -    shared_mime_info
  -    wayland
  -    xorg.inputproto
  -    xorg.libICE
  -    xorg.libSM
  -    xorg.libX11
  -    xorg.libXcomposite
  -    xorg.libXcursor
  -    xorg.libXdamage
  -    xorg.libXext
  -    xorg.libXfixes
  -    xorg.libXi
  -    xorg.libXinerama
  -    xorg.libXrandr
  -    xorg.libXrender
  -  ];
  -
     postInstall = "rm -rvf $out/share/gtk-doc";
   
     # TODO: disable unnecessary tests
     doCheck = false;
  -  enableParallelBuilding = true;
   
     passthru = {
       gtkExeEnvPostBuild = ''
  -      rm $out/lib/gtk-3.0/3.0.0/immodules.cache
  +      rm -v $out/lib/gtk-3.0/3.0.0/immodules.cache
         $out/bin/gtk-query-immodules-3.0 $out/lib/gtk-3.0/3.0.0/immodules/*.so > \
           $out/lib/gtk-3.0/3.0.0/immodules.cache
       ''; # workaround for bug of nix-mode for Emacs */ '';
  
positive.code: with {
    inherit (stdenv.lib)
      enFlag
      wtFlag;
  };
  
  stdenv.mkDerivation rec {
    name = "gtk+-${version}";
  
negative.code:     sha256 = "0848wr702kvpayrlvggn3wys5im564kqyxzn6hkmrkj5mjq1qvm7";
    };
  
    nativeBuildInputs = [
      gettext
      perl
    ];
  
    buildInputs = [
      adwaita-icon-theme
      atk
      at-spi2-atk
      cairo
      colord
      cups
      epoxy
      expat
      fontconfig
      gdk-pixbuf
      glib
      gobject-introspection
      json-glib
      libxkbcommon
      mesa_noglu
      pango
      rest
      shared_mime_info
      wayland
    ] ++ optionals (xorg != null) [
      xorg.inputproto
      xorg.libICE
      xorg.libSM
      xorg.libX11
      xorg.libXcomposite
      xorg.libXcursor
      xorg.libXdamage
      xorg.libXext
      xorg.libXfixes
      xorg.libXi
      xorg.libXinerama
      xorg.libXrandr
      xorg.libXrender
    ];
  
    configureFlags = [
      (enFlag "xkb" (libxkbcommon != null) null)
      (enFlag "xinerama" (xorg != null) null)
      (enFlag "xrandr" (xorg != null) null)
      (enFlag "xfixes" (xorg != null) null)
      (enFlag "xcomposite" (xorg != null) null)
      (enFlag "xdamage" (xorg != null) null)
      (enFlag "x11-backend" (true) null) # xorg deps
      "--disable-win32-backend"
      "--disable-quartz-backend"
  