2025-01-01 07:51:47 -05:00
|
|
|
{ pkgs, ... }:
|
|
|
|
let
|
|
|
|
configDir = if pkgs.stdenv.isDarwin then
|
|
|
|
"Library/Application Support/org.dystroy.bacon"
|
|
|
|
else
|
|
|
|
".config/bacon";
|
|
|
|
in {
|
2023-08-20 10:38:49 +02:00
|
|
|
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 = ''
|
2025-01-01 07:51:47 -05:00
|
|
|
assertFileExists 'home-files/${configDir}/prefs.toml'
|
|
|
|
assertFileContent 'home-files/${configDir}/prefs.toml' ${./expected.toml}
|
2023-08-20 10:38:49 +02:00
|
|
|
'';
|
|
|
|
}
|