This commit is contained in:
nora 2023-07-25 22:13:36 +02:00
parent 87b8b8eb28
commit 8b424c0add
5 changed files with 501 additions and 202 deletions

View file

@ -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
];
};
});