Add nodejs

This commit is contained in:
Oliver Davies 2024-08-02 22:35:40 +01:00
parent 3646cb490c
commit 5159aaf086
6 changed files with 5373 additions and 3534 deletions

17
flake.nix Normal file
View file

@ -0,0 +1,17 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
outputs =
{ nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
inherit (pkgs) mkShell nodejs;
in
{
devShells.${system}.default = mkShell { buildInputs = [ nodejs ]; };
formatter.${system} = pkgs.nixfmt-rfc-style;
};
}