website/flake.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

2026-02-20 12:46:05 +00:00
{
description = "Bevy WASM website";
inputs = {
2026-09-14 16:19:58 +00:00
flake-parts.url = "github:hercules-ci/flake-parts";
2026-02-20 12:46:05 +00:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2026-09-14 16:19:58 +00:00
outputs = inputs@{
flake-parts,
nixpkgs,
rust-overlay,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
perSystem = { pkgs, system, ... }:
let
overlays = [ (import rust-overlay) ];
rustPkgs = import nixpkgs {
inherit system overlays;
};
rustToolchain = rustPkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
in
{
devShells.default = pkgs.mkShell {
buildInputs = [
rustToolchain
pkgs.wasm-bindgen-cli
pkgs.binaryen
pkgs.brotli
pkgs.just
];
};
2026-02-20 12:46:05 +00:00
};
2026-09-14 16:19:58 +00:00
};
2026-02-20 12:46:05 +00:00
}