mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
wat
This commit is contained in:
parent
87b8b8eb28
commit
8b424c0add
5 changed files with 501 additions and 202 deletions
13
flake.nix
13
flake.nix
|
|
@ -1,15 +1,10 @@
|
|||
{
|
||||
description = "Example JavaScript development environment for Zero to Nix";
|
||||
|
||||
# Flake inputs
|
||||
description = "Programming language written in TypeScript compiling to Wasm";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs"; # also valid: "nixpkgs"
|
||||
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
};
|
||||
|
||||
# Flake outputs
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
# Systems supported
|
||||
allSystems = [
|
||||
"x86_64-linux" # 64-bit Intel/AMD Linux
|
||||
"aarch64-linux" # 64-bit ARM Linux
|
||||
|
|
@ -23,12 +18,12 @@
|
|||
});
|
||||
in
|
||||
{
|
||||
# Development environment output
|
||||
devShells = forAllSystems ({ pkgs }: {
|
||||
default = pkgs.mkShell {
|
||||
# The Nix packages provided in the environment
|
||||
packages = with pkgs; [
|
||||
nodejs-18_x # Node.js 18, plus npm, npx, and corepack
|
||||
wasmtime
|
||||
wasm-tools
|
||||
];
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue