Add default.nix to wrap pkgs folder imports.

This commit is contained in:
Kevin Baensch 2024-11-28 17:20:42 +01:00
parent e1b22efefd
commit 2582586c64
Signed by: derped
GPG key ID: C0F1D326C7626543
4 changed files with 11 additions and 7 deletions

View file

@ -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

View file

@ -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 ];

View file

@ -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
View 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; };
}