Skip to content

Commit 18fa139

Browse files
author
BirdeeHub
committed
refactor(flake.nix): flake.nix
1 parent 50d346c commit 18fa139

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

flake.nix

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,11 @@
4747
in {
4848
overlays.default = overlay;
4949
checks = forAllSys (system: let
50-
pkgs = getpkgs system;
51-
mkCheck = luaname: _: pkgs.runCommandCC ("tests-tom" + luaname) (let
52-
lua = pkgs.${luaname}; # .withPackages (lp: [lp.inspect]);
53-
in {
50+
pkgs = getpkgswithoverlay system;
51+
mkCheck = luaname: _: pkgs.runCommandCC ("tests-tom" + luaname) {
5452
src = self;
55-
LUA_INCDIR = "${lua}/include";
56-
LUA = lua.interpreter;
57-
}) ''
58-
mkdir -p "$out" && cd "$src" && {
59-
make build test DESTDIR="$out" | tee "$out/test.log";
60-
}
61-
'';
53+
lua = (pkgs.${luaname}.withPackages (lp: [lp.${APPNAME}])).interpreter;
54+
} "$lua $src/test.lua | tee $out";
6255
in builtins.mapAttrs mkCheck l_pkg_enum);
6356
packages = forAllSys (system: let
6457
pkgs = getpkgswithoverlay system;

0 commit comments

Comments
 (0)