Fix nix flake show.
This commit is contained in:
parent
401bc8434c
commit
78f17cae8d
3 changed files with 8 additions and 28 deletions
10
default.nix
10
default.nix
|
@ -4,12 +4,14 @@ 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;
|
||||
neovim-lazy = wrapNeovimLazy pkgs.neovim-unwrapped { };
|
||||
};
|
||||
in
|
||||
{
|
||||
# https://github.com/NixOS/rfcs/pull/166
|
||||
formatter = pkgs.nixfmt-rfc-style;
|
||||
packages = {
|
||||
inherit wrapNeovimLazy;
|
||||
neovim-lazy = wrapNeovimLazy pkgs.neovim-unwrapped { };
|
||||
};
|
||||
inherit legacyPackages;
|
||||
packages = lib.filterAttrs (name: value: lib.isDerivation value) legacyPackages;
|
||||
}
|
||||
|
|
|
@ -6,18 +6,7 @@
|
|||
}:
|
||||
let
|
||||
cfg = config.programs.nvim-lazy;
|
||||
# TODO: There must be a better way to implement this...
|
||||
luaUtils = import ../../pkgs/luaUtils.nix { inherit lib pkgs; };
|
||||
lazyUtils = import ../../pkgs/lazyUtils.nix { inherit lib luaUtils pkgs; };
|
||||
wrapNeovimLazy =
|
||||
(import ../../default.nix {
|
||||
inherit
|
||||
lib
|
||||
pkgs
|
||||
luaUtils
|
||||
lazyUtils
|
||||
;
|
||||
}).packages.wrapNeovimLazy;
|
||||
wrapNeovimLazy = (import ../../default.nix { inherit lib pkgs; }).legacyPackages.wrapNeovimLazy;
|
||||
in
|
||||
{
|
||||
imports = [ ./default.nix ];
|
||||
|
|
|
@ -6,18 +6,7 @@
|
|||
}:
|
||||
let
|
||||
cfg = config.programs.nvim-lazy;
|
||||
# TODO: There must be a better way to implement this...
|
||||
luaUtils = import ../../pkgs/luaUtils.nix { inherit lib pkgs; };
|
||||
lazyUtils = import ../../pkgs/lazyUtils.nix { inherit lib luaUtils pkgs; };
|
||||
wrapNeovimLazy =
|
||||
(import ../../default.nix {
|
||||
inherit
|
||||
lib
|
||||
pkgs
|
||||
luaUtils
|
||||
lazyUtils
|
||||
;
|
||||
}).packages.wrapNeovimLazy;
|
||||
wrapNeovimLazy = (import ../../default.nix { inherit lib pkgs; }).legacyPackages.wrapNeovimLazy;
|
||||
in
|
||||
{
|
||||
imports = [ ./default.nix ];
|
||||
|
|
Loading…
Reference in a new issue