31 lines
692 B
Nix
31 lines
692 B
Nix
{
|
|
description = "Simple Node.js v22 development environment for web development";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
flake-utils,
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system: let
|
|
pkgs = import nixpkgs {inherit system;};
|
|
in {
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = [
|
|
pkgs.nodejs
|
|
pkgs.git
|
|
];
|
|
shellHook = ''
|
|
echo "Node.js development environment ready."
|
|
node --version
|
|
npm --version
|
|
'';
|
|
};
|
|
}
|
|
);
|
|
}
|