Skip to content

Commit a28318f

Browse files
committed
add openresty variant of luajit
1 parent 76f4031 commit a28318f

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

flake.nix

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,22 @@
3232
'';
3333
};
3434

35+
luajit_openresty = pkgs.stdenv.mkDerivation {
36+
name = "luajit-openresty";
37+
src = pkgs.fetchgit {
38+
url = "https://github.com/openresty/luajit2.git";
39+
rev = "bee99fc60394fb85963c38af9106d3d144eb73e5";
40+
sha256 = "sha256-JH9Iqmk8U0f4NxiTUC8wrR5KlxM4w/hXyrTSGYZHsQw=";
41+
};
42+
43+
buildInputs = [pkgs.makeWrapper];
44+
45+
installPhase = ''
46+
make install PREFIX=$out
47+
ln -sf $out/bin/luajit-2.1.ROLLING $out/bin/luajit_openresty
48+
'';
49+
};
50+
3551
luajit_tarantool = pkgs.stdenv.mkDerivation {
3652
name = "luajit-tarantool";
3753
src = pkgs.fetchgit {
@@ -99,7 +115,7 @@
99115
};
100116

101117
devShells.default = pkgs.mkShell {
102-
buildInputs = [luajit luajit_tarantool];
118+
buildInputs = [luajit luajit_tarantool luajit_openresty];
103119
};
104120
}
105121
);

0 commit comments

Comments
 (0)