Skip to content

Commit 59b93c8

Browse files
chore(nix): test with nix
- add nix testing script using neorocks - bump `tree-sitter-http` version to `v0.0.35` - add `sync-readme` script which syncs default config to readme
1 parent 404a262 commit 59b93c8

File tree

7 files changed

+255
-93
lines changed

7 files changed

+255
-93
lines changed

flake.lock

Lines changed: 75 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
flake-parts,
1717
...
1818
}: let
19+
name = "rest.nvim";
20+
plugin-overlay = import ./nix/plugin-overlay.nix {
21+
inherit self;
22+
};
1923
test-overlay = import ./nix/test-overlay.nix {
2024
inherit self inputs;
2125
};
@@ -31,6 +35,7 @@
3135
overlays = [
3236
neorocks.overlays.default
3337
test-overlay
38+
plugin-overlay
3439
];
3540
};
3641
in {
@@ -40,29 +45,33 @@
4045
inherit
4146
(pkgs)
4247
docgen
48+
sync-readme
4349
;
4450
};
4551
devShells.default = pkgs.mkShell {
4652
name = "rest.nvim devShell";
4753
shellHook = ''
4854
export LUA_PATH="$(luarocks path --lr-path --lua-version 5.1 --local)"
4955
export LUA_CPATH="$(luarocks path --lr-cpath --lua-version 5.1 --local)"
56+
export TREE_SITTER_HTTP_PLUGIN_DIR=${pkgs.tree-sitter-http-plugin}
57+
export REST_NVIM_PLUGIN_DIR=${pkgs.rest-nvim-dev}
5058
'';
5159
buildInputs = [
5260
pkgs.sumneko-lua-language-server
5361
pkgs.stylua
5462
pkgs.docgen
63+
pkgs.sync-readme
5564
(pkgs.lua5_1.withPackages (ps: with ps; [luarocks luacheck]))
5665
];
5766
};
5867

59-
# checks = {
60-
# inherit
61-
# (pkgs)
62-
# # integration-stable
63-
# integration-nightly
64-
# ;
65-
# };
68+
checks = {
69+
inherit
70+
(pkgs)
71+
integration-stable
72+
integration-nightly
73+
;
74+
};
6675
};
6776
};
6877
}

0 commit comments

Comments
 (0)