alacritty-graphics: fix version check, move suffix to pname
This commit is contained in:
@@ -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=";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user