mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
octant: remove module
Package removed from nixpkgs, project repository was archived two years ago and no longer maintained. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
939e91e1cf
commit
9b6e609a6e
2 changed files with 3 additions and 52 deletions
|
|
@ -78,6 +78,9 @@ let
|
||||||
The corresponding package was removed from nixpkgs,
|
The corresponding package was removed from nixpkgs,
|
||||||
consider using `programs.pay-respects` instead.
|
consider using `programs.pay-respects` instead.
|
||||||
'')
|
'')
|
||||||
|
(lib.mkRemovedOptionModule [ "programs" "octant" ] ''
|
||||||
|
Octant is no longer maintained and project was archived.
|
||||||
|
'')
|
||||||
]
|
]
|
||||||
++ (lib.concatMap
|
++ (lib.concatMap
|
||||||
(
|
(
|
||||||
|
|
|
||||||
|
|
@ -1,52 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
inherit (lib) literalExpression;
|
|
||||||
|
|
||||||
cfg = config.programs.octant;
|
|
||||||
|
|
||||||
mkPluginEnv =
|
|
||||||
packages:
|
|
||||||
let
|
|
||||||
pluginDirs = map (pkg: "${pkg}/bin") packages;
|
|
||||||
plugins = lib.concatMapStringsSep " " (p: "${p}/*") pluginDirs;
|
|
||||||
in
|
|
||||||
pkgs.runCommandLocal "octant-plugins" { } ''
|
|
||||||
mkdir $out
|
|
||||||
[[ '${plugins}' ]] || exit 0
|
|
||||||
for plugin in ${plugins}; do
|
|
||||||
ln -s "$plugin" $out/
|
|
||||||
done
|
|
||||||
'';
|
|
||||||
|
|
||||||
in
|
|
||||||
{
|
|
||||||
meta.maintainers = with lib.maintainers; [ jk ];
|
|
||||||
|
|
||||||
options = {
|
|
||||||
programs.octant = {
|
|
||||||
enable = lib.mkEnableOption "octant";
|
|
||||||
|
|
||||||
package = lib.mkPackageOption pkgs "octant" { example = "pkgs.octant-other"; };
|
|
||||||
|
|
||||||
plugins = lib.mkOption {
|
|
||||||
default = [ ];
|
|
||||||
example = literalExpression "[ pkgs.starboard-octant-plugin ]";
|
|
||||||
description = "Optional Octant plugins.";
|
|
||||||
type = lib.types.listOf lib.types.package;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
home.packages = [ cfg.package ];
|
|
||||||
|
|
||||||
xdg.configFile."octant/plugins" = lib.mkIf (cfg.plugins != [ ]) {
|
|
||||||
source = mkPluginEnv cfg.plugins;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue