Add default.nix to wrap pkgs folder imports.
This commit is contained in:
parent
e1b22efefd
commit
2582586c64
4 changed files with 11 additions and 7 deletions
|
@ -5,11 +5,8 @@
|
|||
}:
|
||||
|
||||
let
|
||||
luaUtils = import ./pkgs/luaUtils.nix { inherit lib pkgs; };
|
||||
lazyUtils = import ./pkgs/lazyUtils.nix { inherit lib luaUtils pkgs; };
|
||||
wrapNeovimLazy = pkgs.callPackage ./pkgs/wrapper.nix { inherit lazyUtils; };
|
||||
legacyPackages = {
|
||||
inherit wrapNeovimLazy;
|
||||
legacyPackages = rec {
|
||||
inherit (pkgs.callPackage ./pkgs { }) wrapNeovimLazy lazyUtils luaUtils;
|
||||
neovim-lazy = wrapNeovimLazy pkgs.neovim-unwrapped { };
|
||||
};
|
||||
in
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
}:
|
||||
let
|
||||
cfg = config.programs.nvim-lazy;
|
||||
wrapNeovimLazy = (import ../../default.nix { inherit lib pkgs; }).legacyPackages.wrapNeovimLazy;
|
||||
inherit (pkgs.callPackage ../../pkgs { }) wrapNeovimLazy;
|
||||
in
|
||||
{
|
||||
imports = [ ./default.nix ];
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
}:
|
||||
let
|
||||
cfg = config.programs.nvim-lazy;
|
||||
wrapNeovimLazy = (import ../../default.nix { inherit lib pkgs; }).legacyPackages.wrapNeovimLazy;
|
||||
inherit (pkgs.callPackage ../../pkgs { }) wrapNeovimLazy;
|
||||
in
|
||||
{
|
||||
imports = [ ./default.nix ];
|
||||
|
|
7
pkgs/default.nix
Normal file
7
pkgs/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
rec {
|
||||
luaUtils = pkgs.callPackage ./luaUtils.nix { inherit lib pkgs; };
|
||||
lazyUtils = pkgs.callPackage ./lazyUtils.nix { inherit lib luaUtils pkgs; };
|
||||
wrapNeovimLazy = pkgs.callPackage ./wrapper.nix { inherit lazyUtils; };
|
||||
}
|
Loading…
Reference in a new issue