alacritty-graphics: init at 0.15.1 (#407258)
This commit is contained in:
commit
664f900cd0
@ -23,6 +23,7 @@
|
|||||||
xdg-utils,
|
xdg-utils,
|
||||||
|
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
|
withGraphics ? false,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
rpathLibs =
|
rpathLibs =
|
||||||
@ -44,17 +45,32 @@ let
|
|||||||
in
|
in
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "alacritty";
|
pname = "alacritty";
|
||||||
version = "0.15.1";
|
version = "0.15.1" + lib.optionalString withGraphics "-graphics";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src =
|
||||||
owner = "alacritty";
|
# by default we want the official package
|
||||||
repo = "alacritty";
|
if !withGraphics then
|
||||||
tag = "v${version}";
|
fetchFromGitHub {
|
||||||
hash = "sha256-/yERMNfCFLPb1S17Y9OacVH8UobDIIZDhM2qPzf5Vds=";
|
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;
|
useFetchCargoVendor = true;
|
||||||
cargoHash = "sha256-uXwefUV1NAKqwwPIWj4Slkx0c5b+RfLR3caTb42fc4M=";
|
cargoHash =
|
||||||
|
if !withGraphics then
|
||||||
|
"sha256-uXwefUV1NAKqwwPIWj4Slkx0c5b+RfLR3caTb42fc4M="
|
||||||
|
else
|
||||||
|
"sha256-UtxZFqU974N+YcHoEHifBjNSyaVuMvuc1clTDgUPuoQ=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
|
|||||||
@ -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
|
# addDriverRunpath is the preferred package name, as this enables
|
||||||
# many more scenarios than just opengl now.
|
# many more scenarios than just opengl now.
|
||||||
aocd = with python3Packages; toPythonApplication aocd;
|
aocd = with python3Packages; toPythonApplication aocd;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user