File tree 4 files changed +36
-24
lines changed
4 files changed +36
-24
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ schema = 3
46
46
[mod ."github .com/muesli/termenv" ]
47
47
version = " v0.15.2"
48
48
hash = " sha256-Eum/SpyytcNIchANPkG4bYGBgcezLgej7j/+6IhqoMU="
49
+ [mod ."github .com/otiai10/copy" ]
50
+ version = " v1.14.0"
51
+ hash = " sha256-xsaL1ddkPS544y0Jv7u/INUALBYmYq29ddWvysLXk4A="
49
52
[mod ."github .com/pmezard/go-difflib" ]
50
53
version = " v1.0.0"
51
54
hash = " sha256-/FtmHnaGjdvEIKAJtrUfEhV7EVo5A/eYrtdnUkuxLDA="
@@ -61,9 +64,6 @@ schema = 3
61
64
[mod ."github .com/vmihailenco/tagparser/v2" ]
62
65
version = " v2.0.0"
63
66
hash = " sha256-M9QyaKhSmmYwsJk7gkjtqu9PuiqZHSmTkous8VWkWY0="
64
- [mod ."github .com/ztrue/shutdown" ]
65
- version = " v0.1.1"
66
- hash = " sha256-+ygx5THHu9g+vBAn6b63tV35bvQGdRyto4pLhkontJI="
67
67
[mod ."go .etcd .io/bbolt" ]
68
68
version = " v1.3.8"
69
69
hash = " sha256-ekKy8198B2GfPldHLYZnvNjID6x07dUPYKgFx84TgVs="
Original file line number Diff line number Diff line change 20
20
}
21
21
] ;
22
22
23
- packages = with pkgs ; [
24
- # golang
25
- go
26
- gotools
27
- delve
28
- golangci-lint
29
-
30
- # formatters for testing
31
- alejandra
32
- elmPackages . elm-format
33
- haskellPackages . cabal-fmt
34
- haskellPackages . ormolu
35
- mdsh
36
- nodePackages . prettier
37
- python3 . pkgs . black
38
- rufo
39
- rustfmt
40
- shellcheck
41
- shfmt
42
- terraform
43
- ] ;
23
+ packages = with pkgs ;
24
+ [
25
+ # golang
26
+ go
27
+ delve
28
+ ]
29
+ ++
30
+ # include formatters for development and testing
31
+ ( import ./formatters.nix pkgs ) ;
44
32
45
33
commands = [
46
34
{
Original file line number Diff line number Diff line change
1
+ pkgs :
2
+ with pkgs ; [
3
+ alejandra
4
+ elmPackages . elm-format
5
+ gotools
6
+ haskellPackages . cabal-fmt
7
+ haskellPackages . ormolu
8
+ mdsh
9
+ nodePackages . prettier
10
+ python3 . pkgs . black
11
+ rufo
12
+ rustfmt
13
+ shellcheck
14
+ shfmt
15
+ terraform
16
+ ]
Original file line number Diff line number Diff line change 26
26
"-X 'build.Version=${ version } '"
27
27
] ;
28
28
29
+ # we need some formatters available for the tests
30
+ nativeBuildInputs = import ./formatters.nix pkgs ;
31
+
32
+ preCheck = ''
33
+ XDG_CACHE_HOME=$(mktemp -d)
34
+ export XDG_CACHE_HOME
35
+ '' ;
36
+
29
37
meta = with lib ; {
30
38
description = "treefmt: one CLI to format your repo" ;
31
39
homepage = "https://git.numtide.com/numtide/treefmt" ;
You can’t perform that action at this time.
0 commit comments