bacon: add module

Bacon is a background rust code checker. See
<https://dystroy.org/bacon/>.
This commit is contained in:
shimun 2023-08-20 10:38:49 +02:00 committed by Robert Helgesson
parent 4a6333265e
commit a88df2fb10
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
8 changed files with 84 additions and 0 deletions

View 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}
'';
}

View file

@ -0,0 +1 @@
{ bacon-program = ./bacon.nix; }

View 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