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
|
let
|
||||||
luaUtils = import ./pkgs/luaUtils.nix { inherit lib pkgs; };
|
legacyPackages = rec {
|
||||||
lazyUtils = import ./pkgs/lazyUtils.nix { inherit lib luaUtils pkgs; };
|
inherit (pkgs.callPackage ./pkgs { }) wrapNeovimLazy lazyUtils luaUtils;
|
||||||
wrapNeovimLazy = pkgs.callPackage ./pkgs/wrapper.nix { inherit lazyUtils; };
|
|
||||||
legacyPackages = {
|
|
||||||
inherit wrapNeovimLazy;
|
|
||||||
neovim-lazy = wrapNeovimLazy pkgs.neovim-unwrapped { };
|
neovim-lazy = wrapNeovimLazy pkgs.neovim-unwrapped { };
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.programs.nvim-lazy;
|
cfg = config.programs.nvim-lazy;
|
||||||
wrapNeovimLazy = (import ../../default.nix { inherit lib pkgs; }).legacyPackages.wrapNeovimLazy;
|
inherit (pkgs.callPackage ../../pkgs { }) wrapNeovimLazy;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ ./default.nix ];
|
imports = [ ./default.nix ];
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.programs.nvim-lazy;
|
cfg = config.programs.nvim-lazy;
|
||||||
wrapNeovimLazy = (import ../../default.nix { inherit lib pkgs; }).legacyPackages.wrapNeovimLazy;
|
inherit (pkgs.callPackage ../../pkgs { }) wrapNeovimLazy;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ ./default.nix ];
|
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