Jump to content

Rust: Difference between revisions

40 bytes added ,  15 October 2022
m
enable rust-analyzer, set RUST_BACKTRACE, ...
imported>Milahu
m (fix rustVersion)
imported>Milahu
m (enable rust-analyzer, set RUST_BACKTRACE, ...)
Line 218: Line 218:


<syntaxHighlight lang="nix">
<syntaxHighlight lang="nix">
# based on https://discourse.nixos.org/t/how-can-i-set-up-my-rust-programming-environment/4501/9
/*
based on
https://discourse.nixos.org/t/how-can-i-set-up-my-rust-programming-environment/4501/9
*/
let
let
   rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
   rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
Line 234: Line 237:
     rust
     rust
   ] ++ (with pkgs; [
   ] ++ (with pkgs; [
    rust-analyzer
    pkg-config
     # other dependencies
     # other dependencies
    #rust-analyzer
     #gtk3
     #gtk3
     #wrapGAppsHook
     #wrapGAppsHook
   ]);
   ]);
  RUST_BACKTRACE = 1;
}
}
</syntaxHighlight>
</syntaxHighlight>
Anonymous user