Skip to content
Discussion options

You must be logged in to vote

It looks like this solves the problem:

  (rustChannel.rust.override { extensions = ["rust-src" "rust-analysis"]; })

Here is a full example of a shell.nix:

let
  moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
  pkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
  rustChannel = pkgs.rustChannelOf {
     channel = "stable";
  };
  rust = (rustChannel.rust.override {
    targets = [
      "wasm32-unknown-unknown" # required for the web-app
    ];
    extensions = ["rust-src" "rust-analysis"];
  });

  # required for the desktop app
  runtime_deps = with pkgs; [
      libGL
  ] ++ (with pkgs.xorg; [
      libX11
      libXcu…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@flosse
Comment options

@flosse
Comment options

@the-mikedavis
Comment options

@flosse
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by flosse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants