mirror of
https://github.com/danbulant/rshell
synced 2026-06-15 12:31:30 +00:00
20 lines
567 B
Nix
20 lines
567 B
Nix
{ inputs, ... }:
|
|
let
|
|
overlays = [
|
|
(import inputs.rust-overlay)
|
|
(self: super: assert !(super ? rust-toolchain); rec {
|
|
rust-toolchain =
|
|
super.rust-bin.fromRustupToolchainFile ../../rust-toolchain.toml;
|
|
# super.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default);
|
|
|
|
# buildRustCrate/crate2nix depend on this.
|
|
# rustc = rust-toolchain;
|
|
# cargo = rust-toolchain;
|
|
})
|
|
];
|
|
in
|
|
{
|
|
perSystem = { system, ... }: {
|
|
_module.args.pkgs = import inputs.nixpkgs { inherit system overlays; config = { }; };
|
|
};
|
|
}
|