-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
48 lines (37 loc) · 1.29 KB
/
Copy pathflake.nix
File metadata and controls
48 lines (37 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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.typescript
pkgs.typescript-language-server
# Alternatively, you can use the language server of the preview
# version of TypeScript.
# pkgs.typescript-go
# Python is required on NixOS if the dependencies require node-gyp
# pkgs.python3
];
};
});
};
}