-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: alacritty no longer working on non-NixOS system #4720
Comments
Looking into it further (in particular NixOS/nixpkgs#230660) it looks like this is a complicated longstanding issue. Perhaps it was just by luck that it was previously working before the update? |
No luck following instructions from https://nixos.org/manual/nixpkgs/unstable/#nix-on-gnulinux#4673 $ nix shell nixpkgs#alacritty nixpkgs#libglvnd nixpkgs#mesa.drivers
$ LD_LIBRARY_PATH=$(nix eval --raw nixpkgs#libglvnd)/lib:$(nix eval --raw nixpkgs#mesa.drivers)/lib alacritty
Error: failed to find suitable GL configuration.
Error: "Event loop terminated with code: 1" Running with nixGL works: $ NIXPKGS_ALLOW_UNFREE=1
nix run \
--override-input nixpkgs nixpkgs/nixos-23.11 \
--impure github:guibou/nixGL -- \
nix run nixpkgs#alacritty Closing as this isn't really an HM issue. |
I have the same problem with kitty ! |
Same |
same |
Thanks to this man for the idea what i did is just create a wrapper : # filepath = alacritty/default.nix
{ pkgs }:
pkgs.stdenv.mkDerivation {
name = "alacritty-wrapped";
dontUnpack = true;
buildInputs = with pkgs; [ alacritty libglvnd mesa.drivers ];
installPhase = ''
mkdir -p $out/bin
makeWrapper ${pkgs.alacritty}/bin/alacritty $out/bin/alacritty \
--set LD_LIBRARY_PATH "${pkgs.libglvnd}/lib:${pkgs.mesa.drivers}/lib"
'';
nativeBuildInputs = [ pkgs.makeWrapper ];
} and add this to home.nix home.packages = with pkgs; [
tmux
btop
fzf
lunarvim
moreutils
pwndbg
git
lazygit
nerd-fonts.jetbrains-mono
xsel
cargo
(pkgs.callPackage ./alacritty { })
]; |
Are you following the right branch?
Is there an existing issue for this?
Issue description
Just updated to release-23.11 on an Arch Linux machine that has been running hm-installed alacritty with no issues.
Trying to run alacritty now shows:
Likely related:
failed to find suitable GL configuration
when using nix on linux mint NixOS/nixpkgs#230660Maintainer CC
based on blame: @elkowar @ncfavier @hyperfekt
System information
The text was updated successfully, but these errors were encountered: