Skip to content

Instantly share code, notes, and snippets.

@theoparis
Created November 24, 2024 08:38
Show Gist options
  • Save theoparis/a2e61a1aebc465b04ba320b438369017 to your computer and use it in GitHub Desktop.
Save theoparis/a2e61a1aebc465b04ba320b438369017 to your computer and use it in GitHub Desktop.
ugh
(define-module (luau-package))
(use-modules
(guix packages)
(guix download)
(guix build-system cmake)
(guix licenses)
(gnu packages cmake)
(gnu packages pkg-config)
(gnu packages ninja)
(gnu packages compression)
(gnu packages text-editors)
(gcrypt hash)
)
(define-public luau
(package
(name "luau")
(version "0.653")
(source
(origin
(method url-fetch)
(uri (string-append "https://github.com/luau-lang/luau/archive/" version ".tar.gz"))
(hash (sha256 (base32 "0py6wqz5f83zq81qfwvwlycn4a565928v0pzn0q4h1x0wa8adqsj")))
)
)
(build-system cmake-build-system)
(arguments
`(#:tests? #t
#:configure-flags
'(
"-DBUILD_TESTING=ON"
"-DLUAU_BUILD_CLI=ON"
)
)
)
(native-inputs `(
("cmake" ,cmake)
("ninja" ,ninja)
("pkg-config" ,pkgconf)
))
(home-page "https://luau-lang.org/")
(synopsis "A fast, small, safe, gradually typed scripting language derived from Lua")
(description "Luau is a scripting language derived from Lua, designed to be safe, fast, and small, with gradual typing and enhanced diagnostics.")
(license expat)
)
)
luau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment