flake: filter out non-neovim files
This commit is contained in:
parent
1c1cb9456f
commit
dc5c35f23d
1 changed files with 19 additions and 13 deletions
32
flake.nix
32
flake.nix
|
@ -22,24 +22,30 @@
|
||||||
inherit (inputs.nixpkgs) lib;
|
inherit (inputs.nixpkgs) lib;
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||||
treefmtEval = inputs.treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
|
treefmtEval = inputs.treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
|
||||||
runtimeDeps = with pkgs; [
|
|
||||||
# mason / tree-sitter
|
|
||||||
gcc
|
|
||||||
cargo
|
|
||||||
nodejs
|
|
||||||
|
|
||||||
# telescope
|
|
||||||
ripgrep
|
|
||||||
fd
|
|
||||||
];
|
|
||||||
in {
|
in {
|
||||||
### nix {run,shell,build}
|
### nix {run,shell,build}
|
||||||
packages.default =
|
packages.default = let
|
||||||
|
runtimeDeps = with pkgs; [
|
||||||
|
# mason / tree-sitter
|
||||||
|
gcc
|
||||||
|
cargo
|
||||||
|
nodejs
|
||||||
|
|
||||||
|
# telescope
|
||||||
|
ripgrep
|
||||||
|
fd
|
||||||
|
];
|
||||||
|
|
||||||
|
src = lib.fileset.toSource {
|
||||||
|
fileset = lib.fileset.fileFilter (file: file.hasExt "lua") ./.;
|
||||||
|
root = ./.;
|
||||||
|
};
|
||||||
|
in
|
||||||
pkgs.wrapNeovimUnstable pkgs.neovim-unwrapped
|
pkgs.wrapNeovimUnstable pkgs.neovim-unwrapped
|
||||||
(pkgs.neovimUtils.makeNeovimConfig {
|
(pkgs.neovimUtils.makeNeovimConfig {
|
||||||
customRC = ''
|
customRC = ''
|
||||||
set runtimepath^=${./.}
|
set runtimepath^=${src}
|
||||||
source ${./.}/init.lua
|
source ${src}/init.lua
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
// {wrapperArgs = ["--prefix" "PATH" ":" "${lib.makeBinPath runtimeDeps}"];});
|
// {wrapperArgs = ["--prefix" "PATH" ":" "${lib.makeBinPath runtimeDeps}"];});
|
||||||
|
|
Loading…
Reference in a new issue