anchor.diff:      libnotify
       libpwquality
       librsvg
  +    libsm
       libsoup
       libtool
       libwacom
  +    libx11
  +    libxi
  +    libxkbfile
       libxml2
       libxslt
  -    mesa_noglu
       modemmanager
       networkmanager
       networkmanager-applet
  +    opengl-dummy
       polkit
       pulseaudio_lib
       samba_client
  
positive.code: , upower
  , vino
  , xorg
  }:
  
  let
    inherit (stdenv.lib)
      enFlag
      optionalString;
  in
  stdenv.mkDerivation rec {
    name = "gnome-control-center-${version}";
    versionMajor = "3.20";
    versionMinor = "1";
    version = "${versionMajor}.${versionMinor}";
  
    src = fetchurl {
      url = "mirror://gnome/sources/gnome-control-center/${versionMajor}/${name}.tar.xz";
      sha256Url = "mirror://gnome/sources/gnome-control-center/${versionMajor}/${name}.sha256sum";
      sha256 = "ce6474fc60f78ed3cfaf555e55a52ec3ebb6437fa184e08ad6077bbec380a1ed";
    };
  
    nativeBuildInputs = [
  
negative.code:       sed -i panels/info/cc-info-panel.c \
          -e 's|DATADIR "/gnome/gnome-version.xml"|"${gnome-desktop}/share/gnome/gnome-version.xml"|'
      '' + #optionalString (gnome-online-accounts == null)
          /* Remove unconditional check for gnome-online-accounts */ ''
        sed -i configure.ac \
          -e '/goa-1.0 >=/d'
      '' + /* Fix hardcoded paths */ ''
        sed -i panels/datetime/tz.h \
          -e 's,/usr/share/zoneinfo/zone.tab,${tzdata}/share/zoneinfo/zone.tab,g'
        sed -i panels/printers/pp-options-dialog.c \
          -i panels/printers/pp-host.c \
          -e 's,/usr,${cups},g'
        # FIXME: assumes this will only be run on a Nix-based system
        # IMPURE
        sed -i panels/user-accounts/run-passwd.c \
          -e 's,/usr/bin/passwd,/var/setuid-wrappers/passwd,'
      '';
  
    configureFlags = [
  