Skip to content

Commit

Permalink
fix(tooling): Keep all Lua packages in same env for Nix
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Dec 28, 2022
1 parent 5de6646 commit 228d5fc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions flake.nix
Expand Up @@ -38,7 +38,7 @@
version_rev = if (self ? rev) then (builtins.substring 0 7 self.rev) else "dirty";
# Prepare a different luaEnv to be used in the overridden expression,
# this is also the place to choose a different lua interpreter, such as
# lua5_3 or luajit
# lua5_4 or luajit
luaEnv = pkgs.lua5_3.withPackages(ps: with ps; [
cassowary
cldr
Expand Down Expand Up @@ -117,11 +117,13 @@
inherit (sile) checkInputs nativeBuildInputs;
buildInputs = sile.buildInputs ++ [
pkgs.libarchive
pkgs.perl
];
luaEnv = luaEnv + pkgs.lua5_3.withPackages(ps: with ps; [
pkgs.lua53Packages.busted
pkgs.lua53Packages.luacheck
pkgs.lua53Packages.luarocks
pkgs.perl
];
]);
};
};
packages.sile = sile;
Expand Down

0 comments on commit 228d5fc

Please sign in to comment.