anchor.diff: -{ lib, stdenv, fetchFromGitLab, pkg-config, meson, ninja
  +{ lib, stdenv, fetchurl, pkg-config, meson, ninja
   , libevdev, mtdev, udev, libwacom
   , documentationSupport ? false, doxygen, graphviz # Documentation
   , eventGUISupport ? false, cairo, glib, gtk3 # GUI event viewer support
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "libinput";
    version = "1.16.4";
  
    src = fetchFromGitLab {
      domain = "gitlab.freedesktop.org";
      owner = pname;
      repo = pname;
      rev = version;
      sha256 = "1c81429kh9av9fanxmnjw5rvsjbzcyi7d0dx0gkyq5yysmpmrppi";
    };
  
    outputs = [ "bin" "out" "dev" ];
  
negative.code:       test/symbols-leak-test \
        test/check-leftover-udev-rules.sh \
        test/helper-copy-and-exec-from-tmp.sh
  
      # Don't create an empty /etc directory.
      sed -i "/install_subdir('libinput', install_dir : dir_etc)/d" meson.build
    '';
  
    doCheck = testsSupport && stdenv.hostPlatform == stdenv.buildPlatform;
  