Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing with nix #486

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
149 changes: 75 additions & 74 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 16 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
flake-parts,
...
}: let
name = "rest.nvim";
plugin-overlay = import ./nix/plugin-overlay.nix {
inherit self;
};
test-overlay = import ./nix/test-overlay.nix {
inherit self inputs;
};
Expand All @@ -31,6 +35,7 @@
overlays = [
neorocks.overlays.default
test-overlay
plugin-overlay
];
};
in {
Expand All @@ -40,29 +45,33 @@
inherit
(pkgs)
docgen
sync-readme
;
};
devShells.default = pkgs.mkShell {
name = "rest.nvim devShell";
shellHook = ''
export LUA_PATH="$(luarocks path --lr-path --lua-version 5.1 --local)"
export LUA_CPATH="$(luarocks path --lr-cpath --lua-version 5.1 --local)"
export TREE_SITTER_HTTP_PLUGIN_DIR=${pkgs.tree-sitter-http-plugin}
export REST_NVIM_PLUGIN_DIR=${pkgs.rest-nvim-dev}
'';
buildInputs = [
pkgs.sumneko-lua-language-server
pkgs.stylua
pkgs.docgen
pkgs.sync-readme
(pkgs.lua5_1.withPackages (ps: with ps; [luarocks luacheck]))
];
};

# checks = {
# inherit
# (pkgs)
# # integration-stable
# integration-nightly
# ;
# };
checks = {
inherit
(pkgs)
integration-stable
integration-nightly
;
};
};
};
}
Loading