mirror of
https://github.com/nix-community/home-manager
synced 2024-11-14 07:09:45 +01:00
599e22b1c7
sbt allows overriding the default repositories to use to resolve dependencies. This is often used with proxies and/or private repositories to host internal packages. This change adds a `repositories` attribute to `sbt` to allow specifying the values that will go in `~/.sbt/repositories` file. To support the above change we also deprecate the `baseConfigPath` option in favour of `baseUserConfigPath` which points one level higher by default. This allows not using relative paths to refer to the top-level configuration directory. Also adds tests for the new option and the deprecation of the previous one.
18 lines
461 B
Nix
18 lines
461 B
Nix
{ ... }:
|
|
|
|
{
|
|
programs.sbt = {
|
|
enable = true;
|
|
baseConfigPath = "gone";
|
|
};
|
|
|
|
test.stubs.sbt = { };
|
|
|
|
test.asserts.assertions.expected = [
|
|
(let offendingFile = toString ./deprecated-options.nix;
|
|
in ''
|
|
The option definition `programs.sbt.baseConfigPath' in `${offendingFile}' no longer has any effect; please remove it.
|
|
Use programs.sbt.baseUserConfigPath instead, but note that the semantics are slightly different.
|
|
'')
|
|
];
|
|
}
|