mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
xonsh.xontribs.xontrib-*: init at various (#354733)
This commit is contained in:
commit
ace6a3fdc2
15 changed files with 694 additions and 129 deletions
|
@ -359,6 +359,8 @@
|
|||
|
||||
- `borgmatic` has been updated from 1.8.14 to 1.9.5, please check the [upstream changelog](https://projects.torsion.org/borgmatic-collective/borgmatic/releases) for more details, especially for a few possibly breaking changes noted in the [1.9.0 changelog](https://projects.torsion.org/borgmatic-collective/borgmatic/releases/tag/1.9.0).
|
||||
|
||||
- `programs.xonsh.package` now gets overrided internally with `extraPackages` to support `programs.xonsh.extraPackages`. See `programs.xonsh.extraPackages` for more details.
|
||||
|
||||
- `nodePackages.ganache` has been removed, as the package has been deprecated by upstream.
|
||||
|
||||
- `virtualisation.azure.agent` option provided by `azure-agent.nix` is replaced by `services.waagent`, and will be removed in a future release.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
let
|
||||
|
||||
cfg = config.programs.xonsh;
|
||||
|
||||
package = cfg.package.override { inherit (cfg) extraPackages; };
|
||||
in
|
||||
|
||||
{
|
||||
|
@ -32,6 +32,21 @@ in
|
|||
type = lib.types.lines;
|
||||
};
|
||||
|
||||
extraPackages = lib.mkOption {
|
||||
default = (ps: [ ]);
|
||||
type = with lib.types; coercedTo (listOf lib.types.package) (v: (_: v)) (functionTo (listOf lib.types.package));
|
||||
description = ''
|
||||
Add the specified extra packages to the xonsh package.
|
||||
Preferred over using `programs.xonsh.package` as it composes with `programs.xonsh.xontribs`.
|
||||
|
||||
Take care in using this option along with manually defining the package
|
||||
option above, as the two can result in conflicting sets of build dependencies.
|
||||
This option assumes that the package option has an overridable argument
|
||||
called `extraPackages`, so if you override the package option but also
|
||||
intend to use this option, be sure that your resulting package still honors
|
||||
the necessary option.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
@ -64,11 +79,11 @@ in
|
|||
${cfg.config}
|
||||
'';
|
||||
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
environment.systemPackages = [ package ];
|
||||
|
||||
environment.shells = [
|
||||
"/run/current-system/sw/bin/xonsh"
|
||||
"${lib.getExe cfg.package}"
|
||||
"${lib.getExe package}"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue