anchor.diff:        qt5.qtquickcontrols2.out
         qt5.qtdeclarative.out
         qt5.qtwayland.out
  +      qt5.qtgraphicaleffects.out
  +      qt5.qtbase.out
       ] ++ (with pkgs; [
         hawaii.fluid
         hawaii.greenisland
  
positive.code:     export XDG_DATA_DIRS="$GSETTINGS_SCHEMAS_PATH"
      export LD_LIBRARY_PATH=${env}/lib:$LD_LIBRARY_PATH
      export QT_PLUGIN_PATH=${env}/lib/qt5/plugins
      export QT_QPA_PLATFORM=wayland
      export GDK_BACKEND=wayland
      export CLUTTER_BACKEND=wayland
      export SDL_VIDEODRIVER=wayland
      export DISPLAY=:1
      #export WAYLAND_DISPLAY=wayland-0
      export QML2_IMPORT_PATH="${env}/lib/qt5/qml"
      export XDG_RUNTIME_DIR=/home/matejc/.xdg
      export QML_IMPORT_PATH="${env}/lib/qt5/imports"
      export RUNTIME_XDG_DATA_DIRS="${env}/share"
      export RUNTIME_XDG_CONFIG_DIRS="${env}/etc/xdg"
  
      echo $@
      "$@"
    '';
  
    s = pkgs.writeScript "strace.sh" ''
      #!/bin/sh
      ${pkgs.strace}/bin/strace -o /tmp/strace.log $@
    '';
  
    hawaiiBin = pkgs.writeScript "hawaii.sh" ''
      #!/bin/sh
      su matejc -c "${envVars} ${pkgs.dbus.out}/bin/dbus-launch ${env}/bin/hawaii $@"
    '';
  
    hawaiiRun = pkgs.writeScript "hawaii-run.sh" ''
      #!/bin/sh
      set -e
  
      mkdir -p /home/matejc/.xdg
      chown -R matejc:users /home/matejc/.xdg
      chmod -R 0700 /home/matejc/.xdg
  
      echo ${hawaiiBin}
  
      ${envVars} openvt -v -f -c 8 -- ${s} greenisland-launcher --execute "${hawaiiBin}" --mode wayland
  
    '';
  in pkgs.stdenv.mkDerivation {
    name = "hawaii";
  
negative.code:       hawaii.qtconfiguration
        hawaiiSchemas
  
        weston glib.dev gnome3.dconf
        mesa mesa.out mesa_drivers
      ]);
    };
  
  