-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
rustracer: fails on nixos-unstable #89481
Comments
The problem is that some dependencies seem to require certain nightly versions we don't have in our package set. I'll hopefully have time to investigate soon. |
I ping some more people, they fixed |
With diff --git a/pkgs/development/tools/rust/racer/default.nix b/pkgs/development/tools/rust/racer/default.nix
index 0a29577e0cd..f74e757184e 100644
--- a/pkgs/development/tools/rust/racer/default.nix
+++ b/pkgs/development/tools/rust/racer/default.nix
@@ -2,22 +2,22 @@
rustPlatform.buildRustPackage rec {
pname = "racer";
- version = "2.1.30";
+ version = "2.1.33";
src = fetchFromGitHub {
owner = "racer-rust";
repo = "racer";
- rev = "c2b0080243fefdad7f7b223e8a7fdef3e1f0fa77";
- sha256 = "0svvdkfqpk2rw0wxyrhkxy553k55lg7jxc0ly4w1195iwv14ad3y";
+ rev = "v${version}";
+ sha256 = "0fxcif42k8x70zwpi76h2jxyr048mjzakh52yzqavyr8irl55ll2";
};
- cargoSha256 = "0zaqa89z3nf23s2q1jpmfz4lygh4zq9ymql71d748fgjy9psr449";
+ cargoSha256 = "115ydgv4wd4bf3xhm96zlc9z1lhmrcnm1v5pgzl9846l27ka1z13";
- buildInputs = [ makeWrapper ]
- ++ stdenv.lib.optional stdenv.isDarwin Security;
+ nativeBuildInputs = [ makeWrapper ];
+ buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
# a nightly compiler is required unless we use this cheat code.
- RUSTC_BOOTSTRAP=1;
+ RUSTC_BOOTSTRAP = 1;
RUST_SRC_PATH = rustPlatform.rustcSrc;
postInstall = '' Upgrading to 2.1.34 doesn't work for us, see also racer-rust/racer#1113. I'm wondering though if we want to put |
@Ma27 I'm not well-versed enough in how to deal with this. I'm trying to build |
Yes, as soon as the rustc update is out. Until then, what's wrong with using the package from the stable channel? |
@Ma27 Thanks for the quick response! Nothing, I'm just using nixpkgs-unstable on some of my machines. I guess that's the real problem with my workflow. |
To make sure you don't get me wrong: you don't have to change your default channel, you can do something like this: |
Thanks! That helps, but I think I'll see if I can change my default channel instead. |
It should be possible to add another channel for stbale (e.g. |
See NixOS/nixpkgs#89481 for more information
@NorfairKing I have all the channels I need specified in my config in case I need to do something like this. |
See NixOS/nixpkgs#89481 for more information
Describe the bug
rustracer
fails to build onnixos-unstable
(467ce5a atm).Additional context
This seems to be racer-rust/racer#1093, however I don't understand why it used to work in the first place. Upstream suggests to use rustc from nightly >= 2020-02-10, we use
1.43.0
. This used to not be a problem, as we are usingRUSTC_BOOTSTRAP=1
, a mechanism I don't understand.Notify maintainers
@jagajaga @Ma27
Maintainer information:
The text was updated successfully, but these errors were encountered: