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; };
|
luaUtils = import ./pkgs/luaUtils.nix { inherit lib pkgs; };
|
||||||
lazyUtils = import ./pkgs/lazyUtils.nix { inherit lib luaUtils pkgs; };
|
lazyUtils = import ./pkgs/lazyUtils.nix { inherit lib luaUtils pkgs; };
|
||||||
wrapNeovimLazy = pkgs.callPackage ./pkgs/wrapper.nix { inherit lazyUtils; };
|
wrapNeovimLazy = pkgs.callPackage ./pkgs/wrapper.nix { inherit lazyUtils; };
|
||||||
|
legacyPackages = {
|
||||||
|
inherit wrapNeovimLazy;
|
||||||
|
neovim-lazy = wrapNeovimLazy pkgs.neovim-unwrapped { };
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# https://github.com/NixOS/rfcs/pull/166
|
# https://github.com/NixOS/rfcs/pull/166
|
||||||
formatter = pkgs.nixfmt-rfc-style;
|
formatter = pkgs.nixfmt-rfc-style;
|
||||||
packages = {
|
inherit legacyPackages;
|
||||||
inherit wrapNeovimLazy;
|
packages = lib.filterAttrs (name: value: lib.isDerivation value) legacyPackages;
|
||||||
neovim-lazy = wrapNeovimLazy pkgs.neovim-unwrapped { };
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,18 +6,7 @@
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.programs.nvim-lazy;
|
cfg = config.programs.nvim-lazy;
|
||||||
# TODO: There must be a better way to implement this...
|
wrapNeovimLazy = (import ../../default.nix { inherit lib pkgs; }).legacyPackages.wrapNeovimLazy;
|
||||||
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;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ ./default.nix ];
|
imports = [ ./default.nix ];
|
||||||
|
|
|
@ -6,18 +6,7 @@
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.programs.nvim-lazy;
|
cfg = config.programs.nvim-lazy;
|
||||||
# TODO: There must be a better way to implement this...
|
wrapNeovimLazy = (import ../../default.nix { inherit lib pkgs; }).legacyPackages.wrapNeovimLazy;
|
||||||
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;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ ./default.nix ];
|
imports = [ ./default.nix ];
|
||||||
|
|
Loading…
Reference in a new issue