luau: init at 0.550

This commit is contained in:
Mario Rodas 2022-10-22 04:20:00 +00:00
parent e685b1c508
commit 2cf27dbed8
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "luau";
version = "0.550";
src = fetchFromGitHub {
owner = "Roblox";
repo = "luau";
rev = version;
sha256 = "sha256-bCZ1V3ygN6+6IHWxT8VPi7vWVk711fki9aIPUUsjiQA=";
};
nativeBuildInputs = [ cmake ];
installPhase = ''
runHook preInstall
install -Dm755 -t $out/bin luau
install -Dm755 -t $out/bin luau-analyze
runHook postInstall
'';
doCheck = true;
checkPhase = ''
runHook preCheck
./Luau.UnitTest
./Luau.Conformance
runHook postCheck
'';
meta = with lib; {
homepage = "https://luau-lang.org/";
description = "A fast, small, safe, gradually typed embeddable scripting language derived from Lua";
license = licenses.mit;
platforms = platforms.all;
maintainers = [ maintainers.marsam ];
};
}

View File

@ -15524,6 +15524,8 @@ with pkgs;
luarocks = luaPackages.luarocks;
luarocks-nix = luaPackages.luarocks-nix;
luau = callPackage ../development/interpreters/luau { };
toluapp = callPackage ../development/tools/toluapp {
lua = lua5_1; # doesn't work with any other :(
};