diff options
| author | Yusuf Elsharawy <yusufse-2004@hotmail.com> | 2025-11-18 22:16:29 +0000 |
|---|---|---|
| committer | Yusuf Elsharawy <yusufse-2004@hotmail.com> | 2025-11-18 22:16:29 +0000 |
| commit | e0ea91f86a850203ca50c13d5d7c35d6d473a14b (patch) | |
| tree | 8a615227cf8732d0bc05322b2f0e7cfb13f84216 /flake.nix | |
| parent | wasm: make logs resizable (diff) | |
| download | DungeonCrawl-e0ea91f86a850203ca50c13d5d7c35d6d473a14b.tar.gz DungeonCrawl-e0ea91f86a850203ca50c13d5d7c35d6d473a14b.tar.bz2 DungeonCrawl-e0ea91f86a850203ca50c13d5d7c35d6d473a14b.zip | |
Replaced rustup with custom toolchain using fenix
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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; |