From 2e766b185d2bb6fa38c0bd8fb980ba8fffeedb3a Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 29 Oct 2024 23:05:02 -0400 Subject: 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 --- flake.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index aa09357..20a6042 100644 --- a/flake.nix +++ b/flake.nix @@ -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 -- cgit v1.2.3