Horizon EDA: Fix Intel GPU redraw issue

This commit is contained in:
fruchti 2024-04-27 14:32:05 +02:00
parent b67bf68f0d
commit 9195d6f6de
3 changed files with 24 additions and 0 deletions

View file

@ -2,5 +2,6 @@
{ {
imports = [ imports = [
./burp.nix ./burp.nix
./horizon-eda.nix
]; ];
} }

13
overlays/horizon-eda.nix Normal file
View file

@ -0,0 +1,13 @@
{ config, ... }:
{
nixpkgs.overlays = [
(self: super: {
horizon-eda = (super.horizon-eda.overrideAttrs (old: {
# Add an environment variable to fix redraw issues on Intel Graphics
patches = [
./horizon_software_draw_surface.patch
];
}));
})
];
}

View file

@ -0,0 +1,10 @@
diff --git a/org.horizon_eda.HorizonEDA.desktop b/org.horizon_eda.HorizonEDA.desktop
index 7551df54..d8df7800 100644
--- a/org.horizon_eda.HorizonEDA.desktop
+++ b/org.horizon_eda.HorizonEDA.desktop
@@ -5,4 +5,4 @@ Categories=Development;Engineering;Electronics;
Type=Application
Terminal=false
Icon=org.horizon_eda.HorizonEDA
-Exec=horizon-eda %U
+Exec=env GDK_GL=software-draw-surface horizon-eda %U