commit
420959735a
43
pkgs/development/interpreters/luau/default.nix
Normal file
43
pkgs/development/interpreters/luau/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -15533,6 +15533,8 @@ with pkgs;
|
|||||||
luarocks = luaPackages.luarocks;
|
luarocks = luaPackages.luarocks;
|
||||||
luarocks-nix = luaPackages.luarocks-nix;
|
luarocks-nix = luaPackages.luarocks-nix;
|
||||||
|
|
||||||
|
luau = callPackage ../development/interpreters/luau { };
|
||||||
|
|
||||||
toluapp = callPackage ../development/tools/toluapp {
|
toluapp = callPackage ../development/tools/toluapp {
|
||||||
lua = lua5_1; # doesn't work with any other :(
|
lua = lua5_1; # doesn't work with any other :(
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user