diff options
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; |