bacon: add module
Bacon is a background rust code checker. See <https://dystroy.org/bacon/>.
This commit is contained in:
parent
4a6333265e
commit
a88df2fb10
8 changed files with 84 additions and 0 deletions
23
tests/modules/programs/bacon/bacon.nix
Normal file
23
tests/modules/programs/bacon/bacon.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ ... }: {
|
||||
programs.bacon = {
|
||||
enable = true;
|
||||
settings = {
|
||||
jobs = {
|
||||
ta = {
|
||||
command = [ "cargo" "test" "--all-features" "--color" "always" ];
|
||||
need_stdout = true;
|
||||
};
|
||||
};
|
||||
export = {
|
||||
enabled = true;
|
||||
path = ".bacon-locations";
|
||||
line_format = "{kind} {path}:{line}:{column} {message}";
|
||||
};
|
||||
};
|
||||
};
|
||||
test.stubs.bacon = { };
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/bacon/prefs.toml
|
||||
assertFileContent home-files/.config/bacon/prefs.toml ${./expected.toml}
|
||||
'';
|
||||
}
|
||||
1
tests/modules/programs/bacon/default.nix
Normal file
1
tests/modules/programs/bacon/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ bacon-program = ./bacon.nix; }
|
||||
8
tests/modules/programs/bacon/expected.toml
Normal file
8
tests/modules/programs/bacon/expected.toml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[export]
|
||||
enabled = true
|
||||
line_format = "{kind} {path}:{line}:{column} {message}"
|
||||
path = ".bacon-locations"
|
||||
|
||||
[jobs.ta]
|
||||
command = ["cargo", "test", "--all-features", "--color", "always"]
|
||||
need_stdout = true
|
||||
Loading…
Add table
Add a link
Reference in a new issue