Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 43 lines 863 B view raw
1{ lib, stdenv, fetchFromGitHub, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "luau"; 5 version = "0.572"; 6 7 src = fetchFromGitHub { 8 owner = "Roblox"; 9 repo = "luau"; 10 rev = version; 11 hash = "sha256-7pckVsxzEdy0YykyvaouNWmnETEi86Cs7kCxaoU5lHs="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 16 installPhase = '' 17 runHook preInstall 18 19 install -Dm755 -t $out/bin luau 20 install -Dm755 -t $out/bin luau-analyze 21 22 runHook postInstall 23 ''; 24 25 doCheck = true; 26 27 checkPhase = '' 28 runHook preCheck 29 30 ./Luau.UnitTest 31 ./Luau.Conformance 32 33 runHook postCheck 34 ''; 35 36 meta = with lib; { 37 homepage = "https://luau-lang.org/"; 38 description = "A fast, small, safe, gradually typed embeddable scripting language derived from Lua"; 39 license = licenses.mit; 40 platforms = platforms.all; 41 maintainers = [ maintainers.marsam ]; 42 }; 43}