alacritty-graphics: fix version check, move suffix to pname

This commit is contained in:
aleksana
2025-12-01 21:56:54 +08:00
parent 2a6c26188b
commit a782d057ee
+3 -3
View File
@@ -44,8 +44,8 @@ let
];
in
rustPlatform.buildRustPackage (finalAttrs: {
pname = "alacritty";
version = if !withGraphics then "0.16.1" else "0.16.1-graphics";
pname = "alacritty${lib.optionalString withGraphics "-graphics"}";
version = "0.16.1";
src =
# by default we want the official package
@@ -61,7 +61,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
fetchFromGitHub {
owner = "ayosec";
repo = "alacritty";
tag = "v${finalAttrs.version}";
tag = "v${finalAttrs.version}-graphics";
hash = "sha256-e+o0GLy05qXEY4T57dCuqhukTKBSm1WIHzPUV8uswRI=";
};