Skip to content
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

Nightly 2022-11-06 missing std? #110

Closed
mkditto opened this issue Nov 7, 2022 · 2 comments
Closed

Nightly 2022-11-06 missing std? #110

mkditto opened this issue Nov 7, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@mkditto
Copy link

mkditto commented Nov 7, 2022

I created a basic devshell with the example provided by the README, and I'm running into some strange issues. flake.nix is below:

{
  description = "A devShell example";

  inputs = {
    nixpkgs.url    = "github:NixOS/nixpkgs/nixos-unstable";
    rust-overlay.url = "github:oxalica/rust-overlay";
    flake-utils.url  = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        overlays = [ (import rust-overlay) ];
        pkgs = import nixpkgs {
          inherit system overlays;
        };
      in
      with pkgs;
      {
        devShells.default = mkShell {
          buildInputs = [
            pkg-config
            (rust-bin.fromRustupToolchain { channel = "nightly-2022-11-05"; })
          ];
        };
      }
    );
}

Creating a devshell with this flake.nix file works just fine and the project compiles. However, if I change the channel to nightly-2022-11-06 and run nix develop again, the project fails to compile due to missing std. I tried a few other channels including beta and stable and none of them had the missing std issue, only nightly-2022-11-06 exhibits this problem.

I'm not sure if this is an issue with the overlay or the latest nightly, but it seemed strange that everything but that specific nightly seemed to be working fine.

@figsoda
Copy link

figsoda commented Nov 7, 2022

rust changed its sysroot resolution, fenix ran into the same problem and was just fixed: nix-community/fenix#91 in case you want to try to fix it for rust-overlay

@oxalica
Copy link
Owner

oxalica commented Nov 8, 2022

Fixed since a1ce4b7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants