anchor.diff: -{ stdenv, fetchurl, meson, ninja, pkgconfig
  -, wayland, libGL, mesa, libxkbcommon, cairo, libxcb
  +{ stdenv, fetchurl, meson, ninja, pkg-config, wayland
  +, libGL, mesa, libxkbcommon, cairo, libxcb
   , libXcursor, xlibsWrapper, udev, libdrm, mtdev, libjpeg, pam, dbus, libinput, libevdev
   , colord, lcms2, pipewire ? null
   , pango ? null, libunwind ? null, freerdp ? null, vaapi ? null, libva ? null
  
positive.code: with stdenv.lib;
  stdenv.mkDerivation rec {
    pname = "weston";
    version = "8.0.0";
  
    src = fetchurl {
      url = "https://wayland.freedesktop.org/releases/${pname}-${version}.tar.xz";
      sha256 = "0j3q0af3595g4wcicldgy749zm2g2b6bswa6ya8k075a5sdv863m";
    };
  
    nativeBuildInputs = [ meson ninja pkgconfig ];
    buildInputs = [
      wayland libGL mesa libxkbcommon cairo libxcb libXcursor xlibsWrapper udev libdrm
      mtdev libjpeg pam dbus libinput libevdev pango libunwind freerdp vaapi libva
  
negative.code:   passthru.providedSessions = [ "weston" ];
  
    meta = {
      description = "A lightweight and functional Wayland compositor";
      longDescription = ''
        Weston is the reference implementation of a Wayland compositor, as well
        as a useful environment in and of itself.
        Out of the box, Weston provides a very basic desktop, or a full-featured
        environment for non-desktop uses such as automotive, embedded, in-flight,
        industrial, kiosks, set-top boxes and TVs. It also provides a library
        allowing other projects to build their own full-featured environments on
        top of Weston's core. A small suite of example or demo clients are also
        provided.
      '';
      homepage = "https://gitlab.freedesktop.org/wayland/weston";
      license = licenses.mit; # Expat version
      platforms = platforms.linux;
      maintainers = with maintainers; [ primeos ];
    };
  