anchor.diff:      chmod -x ./scripts/sokSettings.py
   
       patchShebangs .
  +
  +    substituteInPlace setup.py \
  +      --replace "/etc" "$out/etc"
   
       substituteInPlace  ./Onboard/LanguageSupport.py \
         --replace "/usr/share/xml/iso-codes" "${isocodes}/share/xml/iso-codes" \
  
positive.code:       --replace '"killall",' '"${procps}/bin/pkill", "-x",'
    '';
  
    postInstall = ''
      cp onboard-default-settings.gschema.override.example $out/share/glib-2.0/schemas/10_onboard-default-settings.gschema.override
  
      glib-compile-schemas $out/share/glib-2.0/schemas/
    '';
  
    meta = {
      homepage = https://launchpad.net/onboard;
      description = "An onscreen keyboard useful for tablet PC users and for mobility impaired users.";
      maintainers = with stdenv.lib.maintainers; [ johnramsden ];
      license = stdenv.lib.licenses.gpl3;
    };
  }
  
negative.code:     ./hunspell-use-xdg-datadirs.patch
    ];
  
    nativeBuildInputs = [
      gobject-introspection
      intltool
      pkgconfig
      wrapGAppsHook
    ];
  
    buildInputs = [
      bash
      glib
      gnome3.dconf
      gsettings-desktop-schemas
      gtk3
      hunspell
      isocodes
      libcanberra-gtk3
      libxkbcommon
      mousetweaks
      udev
      xorg.libXtst
      xorg.libxkbfile
    ] ++ stdenv.lib.optional atspiSupport at-spi2-core;
  
    propagatedBuildInputs = with python3.pkgs; [
      dbus-python
      distutils_extra
      pyatspi
      pycairo
      pygobject3
      systemd
    ];
  
    propagatedUserEnvPkgs = [
      gnome3.dconf
    ];
  
    checkInputs = [
      # for Onboard.SpellChecker.aspell_cmd doctests
      (aspellWithDicts (dicts: with dicts; [ en ]))
  