-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
add alacritty #21801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add alacritty #21801
Conversation
@globin some love? |
with rustPlatform; | ||
|
||
buildRustPackage rec { | ||
name = "alacritty-${version}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usually we have the following scheme when packaging packages without releases:
name = "alacritty-unstable-<year>-<month>-<day>";
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
cmake gcc pkgconfig freetype expat gperf | ||
libX11 libXcursor libXxf86vm libXi | ||
]; | ||
buildInputs = [ ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that could be dropped then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Should we make hydra build this package? Right now we don't build rustNightly (or rustBeta), see #18111. cc @the-kenny |
@gebner @the-kenny #21804 |
I was unable to build locally due to the Rust compiler stopping compilation with:
But was able to build by overriding it with |
@puffnfresh i suspect that this happens because this branch is not rebased onto the latest master. |
@puffnfresh just tried it with this branch on top of the current master and rust beta, rust nightly and alacritty build without issues |
I can't seem to build either, I'm getting this: https://gist.github.com/jb55/7c438c1ecbb6ee34551aeb771e4841fe |
@jb55 you are not building from the right branch, the nightly version this is trying to build is way too old. |
oops looks like my nixpkgs was dirty and had stuff in staging area. retrying now |
I'm getting the same UDP test problems so it must be something to do with my system. |
@puffnfresh what operating system do you use? I had problems with failing udp tests on debian in a nix-user-chroot, but not on nixos. |
@Mic92 I use NixOS |
@puffnfresh @Mic92 could you check out the latest master and try again? I am wondering if this was an issue with the parallel/codegen PR that has been reverted 3 days ago |
I merged master into this branch and tried to build but I got the hang again:
|
@puffnfresh this seems like a bug that might be worth raising as a separate issue. |
sandbox build failed because a dependency was attempt to download from git.
|
@Mic92 this happens because One would need to pin that revision and provide a separate To others: Note that the build might work on your machine if you have either a) disabled the sandbox or b) generated the hash for |
@the-kenny actually |
Hmm, |
I'd also like to use alacritty, but what's the status of this? #21800 has been merged, but I don't think this works regardless? If I build manually, having added the dependencies to my configuration.nix, I have the issue described in alacritty/alacritty#275 - but the solution there of adding a directory to |
After this applying this patch: diff --git a/pkgs/applications/misc/alacritty/default.nix b/pkgs/applications/misc/alacritty/default.nix
index ec312ed..952bcda 100644
--- a/pkgs/applications/misc/alacritty/default.nix
+++ b/pkgs/applications/misc/alacritty/default.nix
@@ -7,13 +7,13 @@ buildRustPackage rec {
name = "alacritty-unstable-${version}";
version = "2017-01-07";
- depsSha256 = "138bfnrg3j49vl6j2daf1jyyng5r6d088qhsqikhyyqzjx1ih0v2";
+ depsSha256 = "1yv7nhppixgf62yy3is8wlbcpsgid3qjwp2aaj54c456k4gzhxpd";
src = fetchFromGitHub {
owner = "jwilm";
repo = "alacritty";
- rev = "f4b10a1dbb991861a84c5085a0ee4384d2377448";
- sha256 = "044l5s1w2g5krngr1v4lfxv7smh6wzy9zrabnihnpf1bsg6q73nb";
+ rev = "59295e44312b3936132965636e5fac92118e5c27";
+ sha256 = "0jk0nyc8v4ky1riyfbv1z52a35zhiaspggmzqxpggbq7vnsbirx1";
};
nativeBuildInputs = [
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index be9b1f0..78b3564 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -380,7 +380,6 @@ with pkgs;
alacritty = callPackage ../applications/misc/alacritty {
inherit (xorg) libXcursor libXxf86vm libXi;
- rustPlatform = (makeRustPlatform rustNightly);
};
amazon-glacier-cmd-interface = callPackage ../tools/backup/amazon-glacier-cmd-interface { };
diff --git a/pkgs/top-level/rust-packages.nix b/pkgs/top-level/rust-packages.nix
index e35153a..db067a1 100644
--- a/pkgs/top-level/rust-packages.nix
+++ b/pkgs/top-level/rust-packages.nix
@@ -7,9 +7,9 @@
{ runCommand, fetchFromGitHub, git }:
let
- version = "2017-01-27";
- rev = "6a73a15e27364a0c191d61d52406bebb7639b657";
- sha256 = "1dklswbf3acfqid4vv7g2xpqc4gswjgh4ih9xjx3a0m3a69cw9lb";
+ version = "2017-02-07";
+ rev = "e56dbd2ee8dbcc29b8c72586bff64a99268fecf3";
+ sha256 = "0n69ia1r67p9dgrhagrlii9n6wqqasbb1ggma90mawfmvfr7ay7c";
src = fetchFromGitHub {
inherit rev; I'm (still) seeing the error about glutin. |
any update? |
I didn't check open PRs before packaging it on my own: https://gist.github.com/gilligan/63d4d4832fae996f3225cb59345c689e It is working just fine for me on NixOS. |
@gilligan, do you have any progress? |
The following works for me: default.nix
|
@trizinix Building that with the sandbox enabled, I got:
|
@grahamc This issue is blocked by alacritty/alacritty#234. Alacritty depends on a fork of glutin, as specified in Cargo.toml. Cargo tries to fetch the glutin dependency from github during build time, which fails in the sandbox. As a workaround we could download glutin before the build-phase and then modify Cargo.toml accordingly. |
@trizinix I just tried doing that, but I couldn't get it to work. Does buildRustPackage not handle the |
@therealpxc cargo runs before the patch phase. You can patch it like this: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/exa/default.nix#L47 |
Thanks, @Mic92 . Now I've implemented a temporary workaround on my machine parallel to the one they use in the exa package. But there's another problem: jwilm's custom glutin fork also uses git dependencies, so now I get the same failure because glutin depends on jwilm/rust-fontconfig. That version of fontconfig further depends on jwilm/libfontconfig, also specified as a git dependency in its Cargo.toml file. What can we do to patch the additional sources? Can we still define them using fetchFromGitHub or do we need real derivations now, since we have to patch them? |
@therealpxc this was also the roadblock for me. I hope that #24991 will handle git support at some point. |
Motivation for this change
Add alacritty.
This package will only build once #21800 is merged