1 { lib, stdenv, fetchFromGitHub, cmake, llvmPackages }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 hash = "sha256-8jm58F2AQcmjy19fydGLOD5fehaaNHGqXtDPu121jmw=";
14 nativeBuildInputs = [ cmake ];
16 buildInputs = lib.optionals stdenv.cc.isClang [ llvmPackages.libunwind ];
21 install -Dm755 -t $out/bin luau
22 install -Dm755 -t $out/bin luau-analyze
39 description = "A fast, small, safe, gradually typed embeddable scripting language derived from Lua";
40 homepage = "https://luau-lang.org/";
41 changelog = "https://github.com/luau-lang/luau/releases/tag/${version}";
42 license = licenses.mit;
43 platforms = platforms.all;
44 maintainers = [ maintainers.marsam ];