mattercontrol/flake.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

2026-01-28 21:45:39 -08:00
{
description = "MatterControl Web Port - Vue + TypeScript + three.js";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
# Node.js LTS and pnpm
nodejs_22
pnpm
2026-01-28 21:48:53 -08:00
# Rust toolchain for WASM
cargo
rustc
wasm-pack
wasm-bindgen-cli
rust-analyzer
2026-01-28 21:45:39 -08:00
# Useful development tools
just
];
shellHook = ''
echo "Developer Environment"
echo "Node.js: $(node --version)"
echo "pnpm: $(pnpm --version)"
2026-01-28 21:48:53 -08:00
echo "Rust: $(rustc --version)"
echo "Cargo: $(cargo --version)"
echo "wasm-pack: $(wasm-pack --version)"
2026-01-28 21:45:39 -08:00
'';
};
}
);
}