# SPDX-License-Identifier: Unlicense { inputs = { # nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; # Support a particular subset of the Nix systems # systems.url = "github:nix-systems/default"; }; outputs = {nixpkgs, ...}: let eachSystem = f: nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (system: f nixpkgs.legacyPackages.${system}); in { devShells = eachSystem (pkgs: { default = pkgs.mkShell { packages = [ pkgs.nodejs # Alternatively, you can use a specific major version of Node.js # pkgs.nodejs-22_x # Use corepack to install npm/pnpm/yarn as specified in package.json pkgs.corepack # To install a specific alternative package manager directly, # comment out one of these to use an alternative package manager. # pkgs.yarn # pkgs.pnpm # pkgs.bun # Required to enable the language server pkgs.nodePackages.typescript pkgs.nodePackages.typescript-language-server # Python is required on NixOS if the dependencies require node-gyp # pkgs.python3 ]; }; }); packages = eachSystem (pkgs: { default = pkgs.buildNpmPackage { pname = "lifx-scripts"; version = "0.0.1"; src = ./.; npmDepsHash = "sha256-QF1nGMipxVIctuJ6ayTXllJfuGPgZ3GMvcOQyjTpZOo="; }; }); }; }