alacritty-graphics: init at 0.15.1 (#407258)

This commit is contained in:
Alexis Hildebrandt 2025-06-05 22:57:52 +02:00 committed by GitHub
commit 664f900cd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 26 additions and 8 deletions

View File

@ -23,6 +23,7 @@
xdg-utils,
nix-update-script,
withGraphics ? false,
}:
let
rpathLibs =
@ -44,17 +45,32 @@ let
in
rustPlatform.buildRustPackage rec {
pname = "alacritty";
version = "0.15.1";
version = "0.15.1" + lib.optionalString withGraphics "-graphics";
src = fetchFromGitHub {
owner = "alacritty";
repo = "alacritty";
tag = "v${version}";
hash = "sha256-/yERMNfCFLPb1S17Y9OacVH8UobDIIZDhM2qPzf5Vds=";
};
src =
# by default we want the official package
if !withGraphics then
fetchFromGitHub {
owner = "alacritty";
repo = "alacritty";
tag = "v${version}";
hash = "sha256-/yERMNfCFLPb1S17Y9OacVH8UobDIIZDhM2qPzf5Vds=";
}
# optionally we want to build the sixels feature fork
else
fetchFromGitHub {
owner = "ayosec";
repo = "alacritty";
tag = "v${version}";
hash = "sha256-n8vO6Q4bzWLaOqg8YhZ+aLOtBBTQ9plKIEJHXq+hhnM=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-uXwefUV1NAKqwwPIWj4Slkx0c5b+RfLR3caTb42fc4M=";
cargoHash =
if !withGraphics then
"sha256-uXwefUV1NAKqwwPIWj4Slkx0c5b+RfLR3caTb42fc4M="
else
"sha256-UtxZFqU974N+YcHoEHifBjNSyaVuMvuc1clTDgUPuoQ=";
nativeBuildInputs = [
cmake

View File

@ -274,6 +274,8 @@ with pkgs;
''
);
alacritty-graphics = callPackage ../by-name/al/alacritty/package.nix { withGraphics = true; };
# addDriverRunpath is the preferred package name, as this enables
# many more scenarios than just opengl now.
aocd = with python3Packages; toPythonApplication aocd;