mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 09:36:10 +02:00
modules/{output,files,test}: move outputs to build
scope
Move the following output options into `build`: - finalPackage -> package - printInitPackage - initPath -> initFile - filesPlugin -> extraFiles - test.derivation -> test
This commit is contained in:
parent
7bda0f1ce4
commit
692e39311e
14 changed files with 129 additions and 73 deletions
|
@ -36,7 +36,7 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
filesPlugin = lib.mkOption {
|
||||
build.extraFiles = lib.mkOption {
|
||||
type = types.package;
|
||||
description = "A derivation with all the files inside.";
|
||||
internal = true;
|
||||
|
@ -68,7 +68,7 @@ in
|
|||
|
||||
# A directory with all the files in it
|
||||
# Implementation based on NixOS's /etc module
|
||||
filesPlugin = pkgs.runCommandLocal "nvim-config" { } ''
|
||||
build.extraFiles = pkgs.runCommandLocal "nvim-config" { } ''
|
||||
set -euo pipefail
|
||||
|
||||
makeEntry() {
|
||||
|
@ -91,6 +91,6 @@ in
|
|||
'';
|
||||
|
||||
# Never combine user files with the rest of the plugins
|
||||
performance.combinePlugins.standalonePlugins = [ config.filesPlugin ];
|
||||
performance.combinePlugins.standalonePlugins = [ config.build.extraFiles ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue