diff options
| author | Andy Tai <atai@atai.org> | 2026-02-06 23:32:18 -0800 |
|---|---|---|
| committer | 宋文武 <iyzsong@member.fsf.org> | 2026-02-14 20:54:38 +0800 |
| commit | a74e1277c970eb6b2754fe114e9f8228a0e6d40f (patch) | |
| tree | 53efb3c7c8cf1cfcd2041b090353b27a961aff37 /gnu/packages/game-development.scm | |
| parent | 3bcf57f353d901642fd3b16e9f8e4b1c1d48d6a0 (diff) | |
gnu: Add angelscript.
* gnu/packages/game-development.scm (angelscript): New variable.
Closes: guix/guix#6194
Change-Id: Ib11291648ea427ccf168a0b231f40583bb6f20ec
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu/packages/game-development.scm')
| -rw-r--r-- | gnu/packages/game-development.scm | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 8e912f790b5..1d1ce8c474e 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -24,7 +24,7 @@ ;;; Copyright © 2021 Dmitry Polyakov <polyakov@liltechdude.xyz> ;;; Copyright © 2020-2022, 2024-2025 James Smith <jsubuntuxp@disroot.org> ;;; Copyright © 2021 Ekaitz Zarraga <ekaitz@elenq.tech> -;;; Copyright © 2021 Andy Tai <atai@atai.org> +;;; Copyright © 2021, 2026 Andy Tai <atai@atai.org> ;;; Copyright © 2022 Felix Gruber <felgru@posteo.net> ;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com> ;;; Copyright © 2022 dan <i@dan.games> @@ -4128,6 +4128,50 @@ calculations and create complete applications.") @uref{https://www.shlomifish.org/, Shlomi Fish's} projects.") (license license:expat)))) +(define-public angelscript + (package + (name "angelscript") + (version "2.38.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://www.angelcode.com/angelscript/sdk/files/angelscript_" + version ".zip")) + (sha256 + (base32 "0vrflpmj3ldfq96js45czkk4r6266bc570v2gpv7wc8hvay5sfxk")))) + (build-system cmake-build-system) + (outputs '("out" "doc")) + (arguments + (list + #:tests? #f ;there are no tests + #:configure-flags + #~(list "-DBUILD_SHARED_LIBS=true") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "angelscript/projects/cmake"))) + (add-after 'install 'install-doc + (lambda* (#:key outputs #:allow-other-keys) + (chdir "../../../") + (let ((docdir (string-append (assoc-ref outputs "doc") + "/share/doc/anglescript"))) + (copy-recursively "docs" docdir))))))) + (native-inputs (list unzip)) + (home-page "https://www.angelcode.com/angelscript/") + (synopsis "Flexible cross-platform scripting library") + (description + "AngelScript is an cross-platform scripting library designed to allow +applications to extend their functionality through external scripts. It has +been designed from the beginning to be an easy to use component, both for the +application programmer and the script writer. It can call standard C functions +and C++ methods with little to no need for proxy functions. The application +registers the functions, objects, and methods that the scripts work with. The +same functions used by the application internally can be used by the scripting +engine, which eliminates the need to duplicate functionality.") + (license license:zlib))) + (define-public rinutils (package (name "rinutils") |
