From e0ea91f86a850203ca50c13d5d7c35d6d473a14b Mon Sep 17 00:00:00 2001 From: Yusuf Elsharawy Date: Tue, 18 Nov 2025 22:16:29 +0000 Subject: Replaced rustup with custom toolchain using fenix --- flake.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 012633a..df43f3c 100644 --- a/flake.nix +++ b/flake.nix @@ -4,11 +4,16 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; + fenix = { + url = "github:nix-community/fenix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { nixpkgs, flake-utils, + fenix, ... }: let lib = nixpkgs.lib; @@ -34,6 +39,11 @@ libxkbcommon SDL2 ]; + fenixLib = fenix.packages.${system}; + rustToolchain = with fenixLib; combine [ + stable.toolchain + targets.wasm32-unknown-emscripten.stable.toolchain + ]; in { devShell = pkgs.mkShell @@ -41,7 +51,7 @@ packages = with pkgs; [ # rust - rustup + # rustup # web emscripten python3 @@ -50,6 +60,7 @@ clang glfw pkg-config + rustToolchain ] ++ libs; -- cgit v1.2.3-freya