File tree Expand file tree Collapse file tree 2 files changed +113
-0
lines changed Expand file tree Collapse file tree 2 files changed +113
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ description = "CodSpeed Node development environment" ;
3
+
4
+ inputs = {
5
+ nixpkgs . url = "github:NixOS/nixpkgs/nixos-25.05" ;
6
+ flake-utils . url = "github:numtide/flake-utils" ;
7
+ } ;
8
+
9
+ outputs =
10
+ {
11
+ self ,
12
+ nixpkgs ,
13
+ flake-utils ,
14
+ } :
15
+ flake-utils . lib . eachDefaultSystem (
16
+ system :
17
+ let
18
+ pkgs = import nixpkgs { inherit system ; } ;
19
+ commonBuildInputs = with pkgs ; [
20
+ # Needed for node-gyp
21
+ ( python314 . withPackages (
22
+ ps : with ps ; [
23
+ setuptools
24
+ ]
25
+ ) )
26
+ ] ;
27
+
28
+ in
29
+ {
30
+ devShells = {
31
+ default = pkgs . mkShell {
32
+ buildInputs = commonBuildInputs ;
33
+ shellHook = ''
34
+ echo "CodSpeed Node development environment"
35
+ '' ;
36
+ } ;
37
+
38
+ lsp = pkgs . mkShell {
39
+ buildInputs =
40
+ with pkgs ;
41
+ [
42
+ typescript-language-server
43
+ ]
44
+ ++ commonBuildInputs ;
45
+ shellHook = ''
46
+ echo "CodSpeed Node development environment with LSP"
47
+ '' ;
48
+ } ;
49
+ } ;
50
+ }
51
+ ) ;
52
+ }
You can’t perform that action at this time.
0 commit comments