summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuf Elsharawy <yusufse-2004@hotmail.com>2025-11-18 22:16:29 +0000
committerYusuf Elsharawy <yusufse-2004@hotmail.com>2025-11-18 22:16:29 +0000
commite0ea91f86a850203ca50c13d5d7c35d6d473a14b (patch)
tree8a615227cf8732d0bc05322b2f0e7cfb13f84216
parentwasm: make logs resizable (diff)
downloadDungeonCrawl-e0ea91f86a850203ca50c13d5d7c35d6d473a14b.tar.gz
DungeonCrawl-e0ea91f86a850203ca50c13d5d7c35d6d473a14b.tar.bz2
DungeonCrawl-e0ea91f86a850203ca50c13d5d7c35d6d473a14b.zip
Replaced rustup with custom toolchain using fenix
-rw-r--r--flake.nix13
1 files changed, 12 insertions, 1 deletions
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;