summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-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;