File tree Expand file tree Collapse file tree 2 files changed +114
-0
lines changed Expand file tree Collapse file tree 2 files changed +114
-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
+ valgrind # TODO: Remove this in favor of codspeed's valgrind
27
+ ] ;
28
+
29
+ in
30
+ {
31
+ devShells = {
32
+ default = pkgs . mkShell {
33
+ buildInputs = commonBuildInputs ;
34
+ shellHook = ''
35
+ echo "CodSpeed Node development environment"
36
+ '' ;
37
+ } ;
38
+
39
+ lsp = pkgs . mkShell {
40
+ buildInputs =
41
+ with pkgs ;
42
+ [
43
+ typescript-language-server
44
+ ]
45
+ ++ commonBuildInputs ;
46
+ shellHook = ''
47
+ echo "CodSpeed Node development environment with LSP"
48
+ '' ;
49
+ } ;
50
+ } ;
51
+ }
52
+ ) ;
53
+ }
You can’t perform that action at this time.
0 commit comments