File tree Expand file tree Collapse file tree 4 files changed +33
-5
lines changed Expand file tree Collapse file tree 4 files changed +33
-5
lines changed Original file line number Diff line number Diff line change 2
2
{
3
3
imports = [
4
4
./devshell.nix
5
+ ./diff-plugins
5
6
./list-plugins
6
7
./package-tests.nix
7
8
./template-tests.nix
Original file line number Diff line number Diff line change 115
115
command = ''${ ./new-plugin.py } "$@"'' ;
116
116
help = "Create a new plugin" ;
117
117
}
118
- {
119
- name = "diff-plugins" ;
120
- command = ''${ ./diff-plugins.py } "$@"'' ;
121
- help = "Compare available plugins with another nixvim commit" ;
122
- }
123
118
] ;
124
119
} ;
125
120
} ;
Original file line number Diff line number Diff line change
1
+ {
2
+ perSystem =
3
+ {
4
+ lib ,
5
+ pkgs ,
6
+ ...
7
+ } :
8
+ let
9
+ package = pkgs . writers . writePython3Bin "diff-plugins" {
10
+ # Disable flake8 checks that are incompatible with the ruff ones
11
+ flakeIgnore = [
12
+ # Thinks shebang is a block comment
13
+ "E265"
14
+ # line too long
15
+ "E501"
16
+ # line break before binary operator
17
+ "W503"
18
+ ] ;
19
+ } ( builtins . readFile ./diff-plugins.py ) ;
20
+ in
21
+ {
22
+ packages . diff-plugins = package ;
23
+
24
+ devshells . default . commands = [
25
+ {
26
+ name = "diff-plugins" ;
27
+ command = ''${ lib . getExe package } "$@"'' ;
28
+ help = "Compare available plugins with another nixvim commit" ;
29
+ }
30
+ ] ;
31
+ } ;
32
+ }
File renamed without changes.
You can’t perform that action at this time.
0 commit comments