Skip to content

Commit 05add4e

Browse files
author
Marc Jakobi
committed
build: add plugin-overlay to flake outputs
1 parent 0aa75ef commit 05add4e

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

flake.nix

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -86,28 +86,32 @@
8686
zlib
8787
];
8888
};
89-
in {
90-
devShells = {
91-
default = devShell;
92-
inherit devShell;
93-
};
89+
in
90+
{
91+
devShells = {
92+
default = devShell;
93+
inherit devShell;
94+
};
9495

95-
packages = rec {
96-
default = nvim-plugin;
97-
inherit docgen;
98-
inherit
99-
(pkgs)
100-
nvim-plugin
101-
;
102-
};
96+
packages = rec {
97+
default = haskell-snippets-nvim;
98+
inherit docgen;
99+
inherit
100+
(pkgs)
101+
haskell-snippets-nvim
102+
;
103+
};
103104

104-
checks = {
105-
formatting = pre-commit-check;
106-
inherit
107-
(pkgs)
108-
nvim-stable-tests
109-
nvim-nightly-tests
110-
;
111-
};
112-
});
105+
checks = {
106+
formatting = pre-commit-check;
107+
inherit
108+
(pkgs)
109+
nvim-stable-tests
110+
nvim-nightly-tests
111+
;
112+
};
113+
}
114+
// {
115+
overlays.default = plugin-overlay;
116+
});
113117
}

nix/plugin-overlay.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name,
33
self,
44
}: final: prev: {
5-
nvim-plugin = final.pkgs.vimUtils.buildVimPluginFrom2Nix {
5+
haskell-snippets-nvim = final.pkgs.vimUtils.buildVimPluginFrom2Nix {
66
inherit name;
77
src = self;
88
};

0 commit comments

Comments
 (0)