You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# update in 2023-05-24 21:26{description="A devShell for rCore";inputs={nixpkgs.url="github:NixOS/nixpkgs/nixos-unstable";# nixpkgs-qemu7.url = "https://github.com/NixOS/nixpkgs/archive/7cf5ccf1cdb2ba5f08f0ac29fc3d04b0b59a07e4.tar.gz";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:
letoverlays=[(importrust-overlay)(self: super: {# ref: https://github.com/the-nix-way/dev-templatesrust-toolchain=letrust=super.rust-bin;inifbuiltins.pathExists./rust-toolchain.tomlthenrust.fromRustupToolchainFile./rust-toolchain.tomlelseifbuiltins.pathExists./rust-toolchainthenrust.fromRustupToolchainFile./rust-toolchainelse# The rust-toolchain when i make this file, which maybe change(rust.nightly."2022-08-05".minimal.override{extensions=["rust-src""llvm-tools-preview""rustfmt""clippy"];targets=["riscv64gc-unknown-none-elf"];});})];pkgs=importnixpkgs{inheritsystemoverlays;};# pkg-qemu = import nixpkgs-qemu7 { inherit system; };in{devShells.default=pkgs.mkShell{buildInputs=(withpkgs;[# Basicopensslpkg-configexafdlibclang# Cross Compile(withpkgsCross.riscv64;[musl.stdenv.cc])# If use normally, no necessary need to change.# Rust Configuraiton rustupcargo-binutilsrust-toolchain])++[pkgs.qemu# pkg-qemu.qemu];shellHook='' alias ls=exa alias find=fd '';};});}
The text was updated successfully, but these errors were encountered:
注意:使用本文的方法最好需要有一定
nix
的使用基础,以在可能出错的地方修改代码使之正常运行。(本文的代码尚未完全测试)配置文件最新地址
如果在使用的过程中遇到了任何问题,欢迎回复(就是不一定我能解决
The text was updated successfully, but these errors were encountered: