summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/override
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2023-06-26 19:23:00 +0200
committertv <tv@krebsco.de>2023-06-26 19:23:00 +0200
commita5b44e13fa585600c651f8693af62a8998c47272 (patch)
tree6750ab4da76534df639fb1243ac1ceec3810db87 /tv/5pkgs/override
parentf9e82b4ffc5db0c53556bf068ffc8859828163ef (diff)
tv alacritty: fix touchscreen scrolling
Diffstat (limited to 'tv/5pkgs/override')
-rw-r--r--tv/5pkgs/override/alacritty.nix22
1 files changed, 12 insertions, 10 deletions
diff --git a/tv/5pkgs/override/alacritty.nix b/tv/5pkgs/override/alacritty.nix
index 17baa048f..f864fff63 100644
--- a/tv/5pkgs/override/alacritty.nix
+++ b/tv/5pkgs/override/alacritty.nix
@@ -1,14 +1,16 @@
self: super:
super.alacritty.overrideAttrs (old:
- assert self.lib.versions.majorMinor old.version == "0.11";
- {
- version = "${old.version}-tv";
- src = self.fetchFromGitHub {
- owner = "4z3";
- repo = "alacritty";
- rev = "touchscreen-support-0.11";
- hash = "sha256-oA4earrJ7lPVSBm9vRccWatAQ49hfDKsa7M72B5uQpY=";
- };
- }
+ if self.lib.versions.majorMinor old.version == "0.12" then
+ {
+ version = "${old.version}-tv";
+ src = self.fetchFromGitHub {
+ owner = "4z3";
+ repo = "alacritty";
+ rev = "touchscreen-support-0.12";
+ hash = "sha256-yDG7IeQUmJhKMJebhMDzHLb3UHGLcO1FVZnmGe5Xr9w=";
+ };
+ }
+ else
+ builtins.trace "not overriding alacritty because unsupported version" {}
)