This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +34
-3
lines changed Expand file tree Collapse file tree 4 files changed +34
-3
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # If you want to use this as an .envrc file to create a shell with necessery components
2+ # to develop rustc, use the following command in the root of the rusr checkout:
3+ #
4+ # ln -s ./src/tools/nix-dev-shell/envrc-flake ./.envrc && echo .envrc >> .git/info/exclude
5+
6+ if nix flake show path:./src/tools/nix-dev-shell &> /dev/null; then
7+ use flake path:./src/tools/nix-dev-shell
8+ fi
Original file line number Diff line number Diff line change 1+ # If you want to use this as an .envrc file to create a shell with necessery components
2+ # to develop rustc, use the following command in the root of the rusr checkout:
3+ #
4+ # ln -s ./src/tools/nix-dev-shell/envrc-shell ./.envrc && echo .envrc >> .git/info/exclude
5+
6+ use nix ./src/tools/nix-dev-shell/shell.nix
7+
Original file line number Diff line number Diff line change 1+ { pkgs ? import <nixpkgs> { } } :
2+ let
3+ x = import ./x { inherit pkgs ; } ;
4+ in
5+ pkgs . mkShell {
6+ name = "rustc" ;
7+ nativeBuildInputs = with pkgs ; [
8+ binutils cmake ninja pkg-config python3 git curl cacert patchelf nix
9+ ] ;
10+ buildInputs = with pkgs ; [
11+ openssl glibc . out glibc . static x
12+ ] ;
13+ # Avoid creating text files for ICEs.
14+ RUSTC_ICE = "0" ;
15+ # Provide `libstdc++.so.6` for the self-contained lld.
16+ LD_LIBRARY_PATH = "${ with pkgs ; lib . makeLibraryPath [
17+ stdenv . cc . cc . lib
18+ ] } ";
19+ }
You can’t perform that action at this time.
0 commit comments