summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-10-29 23:05:02 -0400
committerGitHub <[email protected]>2024-10-30 03:05:02 +0000
commit2e766b185d2bb6fa38c0bd8fb980ba8fffeedb3a (patch)
tree7c4bc93efe19c00f58bf4df2447b4677488d70ad /flake.nix
parent310fdf8de53d98ddd3a56936c131186e25814f0f (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.nix16
1 files changed, 13 insertions, 3 deletions
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