File tree 3 files changed +31
-27
lines changed
3 files changed +31
-27
lines changed Original file line number Diff line number Diff line change @@ -19,33 +19,8 @@ perSystem.self.treefmt.overrideAttrs (old: {
19
19
pkgs . delve
20
20
pkgs . pprof
21
21
pkgs . graphviz
22
- pkgs . nodejs
23
22
]
24
23
++
25
24
# include formatters for development and testing
26
- ( import ../packages/treefmt/formatters.nix pkgs )
27
- # docs related helpers
28
- ++ ( let
29
- docs = command :
30
- pkgs . writeShellApplication {
31
- name = "docs:${ command } " ;
32
- runtimeInputs = [ pkgs . nodejs ] ;
33
- text = ''cd "'' ${DIRENV_DIR:1}/docs" && npm ci && npm run ${ command } '' ;
34
- } ;
35
- in [
36
- ( docs "dev" )
37
- ( docs "build" )
38
- ( docs "preview" )
39
- ( pkgs . writeShellApplication {
40
- name = "vhs" ;
41
- runtimeInputs =
42
- [
43
- perSystem . self . treefmt
44
- pkgs . rsync
45
- pkgs . vhs
46
- ]
47
- ++ ( import ../packages/treefmt/formatters.nix pkgs ) ;
48
- text = ''vhs "$@"'' ;
49
- } )
50
- ] ) ;
25
+ ( import ../packages/treefmt/formatters.nix pkgs ) ;
51
26
} )
Original file line number Diff line number Diff line change
1
+ {
2
+ pkgs ,
3
+ perSystem ,
4
+ ...
5
+ } :
6
+ pkgs . mkShellNoCC {
7
+ packages = let
8
+ docs = command :
9
+ pkgs . writeShellApplication {
10
+ name = "docs:${ command } " ;
11
+ runtimeInputs = [ pkgs . nodejs ] ;
12
+ text = ''cd "'' ${DIRENV_DIR:1}/docs" && npm ci && npm run ${ command } '' ;
13
+ } ;
14
+ in [
15
+ ( docs "dev" )
16
+ ( docs "build" )
17
+ ( docs "preview" )
18
+ ( pkgs . writeShellApplication {
19
+ name = "vhs" ;
20
+ runtimeInputs =
21
+ [
22
+ perSystem . self . treefmt
23
+ pkgs . rsync
24
+ pkgs . vhs
25
+ ]
26
+ ++ ( import ../packages/treefmt/formatters.nix pkgs ) ;
27
+ text = ''vhs "$@"'' ;
28
+ } )
29
+ ] ;
30
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
pkgs ,
3
3
inputs ,
4
- perSystem ,
5
4
...
6
5
} :
7
6
inputs . treefmt-nix . lib . mkWrapper pkgs {
You can’t perform that action at this time.
0 commit comments