anchor.diff:  , writeText
   , meson
   , ninja
  -, pkg-config
   }:
   
   let
  
positive.code: in
  
  stdenv.mkDerivation rec {
    pname = "elementary-session-settings";
    version = "unstable-2019-11-12";
  
    repoName = "session-settings";
  
    src = fetchFromGitHub {
      owner = "elementary";
      repo = repoName;
      rev = "f9d5afed16ce447cf6ae3c2d1c1db5eece84daca";
      sha256 = "0n1m41aapr58rb1ffvfkjq6c6w3f0ynjzzhja50s4di98p4m7y0q";
    };
  
    patches = [
      # Map Pantheon required components by g-s-d versions
      # https://github.com/elementary/session-settings/pull/23
      (fetchpatch {
        url = "https://github.com/elementary/session-settings/commit/39918f4ec64fa9ed5affa109d6a692b97ae4ff01.patch";
        sha256 = "0v2kqcsibymnslnnw4v67yh098znsrhrcycgxkw8vymvwlinc502";
      })
    ];
  
    nativeBuildInputs = [
      meson
      ninja
      pkg-config
    ];
  
    buildInputs = [
      elementary-settings-daemon
    ];
  
    mesonFlags = [
      "-Ddefaults-list=false"
      "-Dpatched-gsd-autostarts=false"
      "-Dpatched-ubuntu-autostarts=false"
      "-Dfallback-session=GNOME"
    ];
  
    postInstall = ''
      mkdir -p $out/share/applications
      cp -av ${./pantheon-mimeapps.list} $out/share/applications/pantheon-mimeapps.list
  
      mkdir -p $out/etc/xdg/autostart
      for package in ${gnome-keyring} ${orca} ${onboard} ${at-spi2-core}; do
        cp -av $package/etc/xdg/autostart/* $out/etc/xdg/autostart
      done
  
      cp "${dockitemAutostart}" $out/etc/xdg/autostart/default-elementary-dockitems.desktop
  
  
negative.code: { stdenv
  , fetchFromGitHub
  , substituteAll
  , desktop-file-utils
  , pkg-config
  , writeScript
  , pantheon
  , gnome-keyring
  