Skip to content

Commit

Permalink
chore(devenv.nix): properly attach test dependencies (busted) as well
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed May 23, 2024
1 parent 4ad53ff commit 4121174
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
...
}: let
neorg-dependencies = builtins.fromJSON (builtins.readFile ./res/deps.json);
test-dependencies = [ "busted" ];
luarc = pkgs.mk-luarc {
plugins = builtins.attrNames neorg-dependencies;
plugins = builtins.attrNames neorg-dependencies ++ test-dependencies;
};
in {
name = "neorg";
Expand All @@ -23,7 +24,7 @@ in {
# Set up packages for the developer and testing environment. Explanation of some packages:
# - `tree-sitter` - for `tree-sitter-build` to work
# - `imagemagick` - for testing `image.nvim` integrations
packages = with pkgs; [imagemagick git wget tree-sitter gcc luajitPackages.luarocks luajitPackages.magick neovim-unwrapped];
packages = with pkgs; [imagemagick git wget tree-sitter gcc neovim-unwrapped];

enterShell =
# TODO(vhyrro): Hook these up to the user's Neovim instance (somehow) | lib.attrsets.foldlAttrs (acc: name: version: "luarocks install --force-lock --local ${name} ${version}" + "\n" + acc) "" neorg-dependencies +
Expand Down

0 comments on commit 4121174

Please sign in to comment.