diff options
| author | seth <[email protected]> | 2024-10-29 23:05:02 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-10-30 03:05:02 +0000 |
| commit | 2e766b185d2bb6fa38c0bd8fb980ba8fffeedb3a (patch) | |
| tree | 7c4bc93efe19c00f58bf4df2447b4677488d70ad /flake.nix | |
| parent | 310fdf8de53d98ddd3a56936c131186e25814f0f (diff) | |
use custom wrapper (#70)
* use custom wrapper
* flake: use nix-filter on self
* don't load remote plugins
* use nvim-cmp and fidget from luarocks
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -3,12 +3,14 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + nix-filter.url = "github:numtide/nix-filter"; }; outputs = { self, nixpkgs, + nix-filter, }: let inherit (nixpkgs) lib; @@ -39,7 +41,7 @@ month day ]; - version = "0-unstable-${date}"; + version = "0-unstable-" + date; in { checks = forAllSystems ( @@ -95,13 +97,21 @@ pkgs = nixpkgsFor.${system}; ourPackages = lib.makeScope pkgs.newScope (final: { - getchvim = final.callPackage ./neovim.nix { }; + mkNeovimDerivation = final.callPackage ./wrapper.nix { }; + getchvim = final.callPackage ./neovim.nix { inherit version; }; getchoo-neovim-config = pkgs.vimUtils.buildVimPlugin { pname = "getchoo-neovim-config"; inherit version; - src = self; + src = nix-filter.lib.filter { + root = self; + include = [ + ./lua + ./ftdetect + ./ftplugin + ]; + }; }; }); in |
