use standard behaviour to run apps from packages

This commit is contained in:
Dmitriy Pleshevskiy 2024-04-17 12:25:30 +03:00
parent 53b281848b
commit d3e0b8c0d9
Signed by: pleshevskiy
GPG Key ID: 17041163DA10A9A2
1 changed files with 0 additions and 7 deletions

View File

@ -310,17 +310,10 @@
full = fullNeovim; full = fullNeovim;
minimal = minimalNeovim; minimal = minimalNeovim;
}; };
mkApp = drv: {
type = "app";
program = "${drv}/bin/nvim";
};
in in
{ {
inherit packages; inherit packages;
apps = mapAttrs (name: mkApp) packages;
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
packages = [ packages = [
pkgs.stylua # lua formatter pkgs.stylua # lua formatter