Skip to content

Failed to create EGL display #87

@hlongvu

Description

@hlongvu
Image

I am using the app image to run this from nixos, version 0.1.19 this error show up: Failed to create EGL display
Please help to fix this.

my config

{ config, pkgs, ... }:

let
  pname = "limux";
  version = "0.1.19";
  # Providing the direct URL for v0.1.19 as requested
  linkAppImageURL = "https://github.com/am-will/limux/releases/download/v${version}/Limux-${version}-x86_64.AppImage";
  
  # Replace this with the actual SHA you have
  sha = "sha256-x3vCkv+BNYspC+7mMWUBLz1Wrk9sEI0GcUlnVP2AriM="; 

  src = pkgs.fetchurl {
    url = linkAppImageURL;
    sha256 = sha;
  };

  appimageContents = pkgs.appimageTools.extract {
    inherit pname version src;
  };

  limux = pkgs.appimageTools.wrapType2 {
    inherit pname version src;

    # These are the "System Dependencies" we discovered earlier
    extraPkgs = pkgs: with pkgs; [
      gtk4
      libadwaita
      webkitgtk_6_0
      libglvnd # Added for GPU acceleration support (Ghostty engine)
    ];

    extraInstallCommands = ''
      mkdir -p $out/share/applications
      # Extract icon from the AppImage contents
      mkdir -p $out/share/icons/hicolor/512x512/apps
      cp ${appimageContents}/usr/share/icons/hicolor/512x512/apps/limux.png $out/share/icons/hicolor/512x512/apps/${pname}.png || true
      
      cat > $out/share/applications/${pname}.desktop <<EOF
      [Desktop Entry]
      Type=Application
      Name=Limux
      Icon=${pname}
      Exec=${pname} %F
      StartupWMClass=dev.limux.linux
      Categories=System;TerminalEmulator;
      Comment=GPU-accelerated terminal workspace manager
      EOF
    '';
  };

in
{
  home.packages = [
    limux
  ];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions