Fix nix flake show.

This commit is contained in:
Kevin Baensch 2024-05-18 11:07:17 +02:00
parent 401bc8434c
commit 78f17cae8d
Signed by: derped
GPG key ID: C0F1D326C7626543
3 changed files with 8 additions and 28 deletions

View file

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

View file

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

View file

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